Add error message for no active calendar and improve error handling in calendar event dialog
This commit is contained in:
parent
a1b27fbf4e
commit
e95c28ab64
2 changed files with 7 additions and 0 deletions
|
|
@ -1206,5 +1206,9 @@
|
||||||
"prefs_OptionText_spamfilter_context_menu_Info": {
|
"prefs_OptionText_spamfilter_context_menu_Info": {
|
||||||
"message": "If checked, the \"Analyze for spam\" context menu item will be shown when right-clicking on an email in the messages list.",
|
"message": "If checked, the \"Analyze for spam\" context menu item will be shown when right-clicking on an email in the messages list.",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"noActiveCalendar": {
|
||||||
|
"message": "No active calendar found!",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -238,6 +238,9 @@ export class mzta_Menus {
|
||||||
taWorkingStatus.stopWorking();
|
taWorkingStatus.stopWorking();
|
||||||
return {ok:'1'};
|
return {ok:'1'};
|
||||||
} else {
|
} else {
|
||||||
|
if (result_openCalendarEventDialog.error.startsWith("|>>")) {
|
||||||
|
result_openCalendarEventDialog.error = browser.i18n.getMessage(result_openCalendarEventDialog.error.substring(3));
|
||||||
|
}
|
||||||
browser.tabs.sendMessage(tabs[0].id, { command: "sendAlert", curr_tab_type: tabs[0].type, message: browser.i18n.getMessage("calendar_opening_dialog_error") + ": " + result_openCalendarEventDialog.error });
|
browser.tabs.sendMessage(tabs[0].id, { command: "sendAlert", curr_tab_type: tabs[0].type, message: browser.i18n.getMessage("calendar_opening_dialog_error") + ": " + result_openCalendarEventDialog.error });
|
||||||
taWorkingStatus.stopWorking();
|
taWorkingStatus.stopWorking();
|
||||||
return {ok:'0'};
|
return {ok:'0'};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue