alert dialog improved
This commit is contained in:
parent
7921bc24ba
commit
0315b9e816
2 changed files with 9 additions and 2 deletions
|
|
@ -846,5 +846,9 @@
|
||||||
"thunderai_error_title": {
|
"thunderai_error_title": {
|
||||||
"message": "ThunderAI Error",
|
"message": "ThunderAI Error",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"thunderai_warning_title": {
|
||||||
|
"message": "ThunderAI Warning",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -111,7 +111,6 @@ switch (message.command) {
|
||||||
|
|
||||||
.mzta_dialog_message {
|
.mzta_dialog_message {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
font-size: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2.addtags{
|
h2.addtags{
|
||||||
|
|
@ -148,7 +147,11 @@ switch (message.command) {
|
||||||
|
|
||||||
const title = document.createElement('h2');
|
const title = document.createElement('h2');
|
||||||
title.className = 'addtags';
|
title.className = 'addtags';
|
||||||
title.textContent = browser.i18n.getMessage("thunderai_error_title");
|
if(message.is_error){
|
||||||
|
title.textContent = browser.i18n.getMessage("thunderai_error_title");
|
||||||
|
}else{
|
||||||
|
title.textContent = browser.i18n.getMessage("thunderai_warning_title");
|
||||||
|
}
|
||||||
dialog_sendAlert.appendChild(title);
|
dialog_sendAlert.appendChild(title);
|
||||||
|
|
||||||
const content_sendAlert = window.document.createElement('div');
|
const content_sendAlert = window.document.createElement('div');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue