Bug 1817705 - Add convert to event/task in mail context menu. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D182571 --HG-- extra : amend_source : 74663a6df9a88b6e75b081b671ea27c828d453b5
This commit is contained in:
Родитель
151cb9e647
Коммит
04daa17356
|
@ -303,7 +303,6 @@ var mailContextMenu = {
|
|||
for (let id of [
|
||||
"mailContext-openInBrowser",
|
||||
"mailContext-recalculateJunkScore",
|
||||
"mailContext-calendar-convert-menu",
|
||||
]) {
|
||||
showItem(id, false);
|
||||
}
|
||||
|
@ -382,7 +381,11 @@ var mailContextMenu = {
|
|||
document.getElementById("mailContext-moveToFolderAgain")
|
||||
);
|
||||
|
||||
// setSingleSelection("mailContext-calendar-convert-menu");
|
||||
// Show only if a message is actively selected in the DOM.
|
||||
showItem(
|
||||
"mailContext-calendar-convert-menu",
|
||||
numSelectedMessages == 1 && !this.selectionIsOverridden
|
||||
);
|
||||
|
||||
document.l10n.setAttributes(
|
||||
document.getElementById("mailContext-delete"),
|
||||
|
@ -598,12 +601,12 @@ var mailContextMenu = {
|
|||
}
|
||||
|
||||
// Calendar Convert sub-menu
|
||||
// case "mailContext-calendar-convert-event-menuitem":
|
||||
// calendarExtract.extractFromEmail(true);
|
||||
// break;
|
||||
// case "mailContext-calendar-convert-task-menuitem":
|
||||
// calendarExtract.extractFromEmail(false);
|
||||
// break;
|
||||
case "mailContext-calendar-convert-event-menuitem":
|
||||
top.calendarExtract.extractFromEmail(true);
|
||||
break;
|
||||
case "mailContext-calendar-convert-task-menuitem":
|
||||
top.calendarExtract.extractFromEmail(false);
|
||||
break;
|
||||
|
||||
// Save/print/download
|
||||
default: {
|
||||
|
|
|
@ -88,7 +88,7 @@ const mailContextData = {
|
|||
"mailContext-moveMenu": notExternal,
|
||||
"mailContext-copyMenu": true,
|
||||
"mailContext-decryptToFolder": ["multipleMessagesTree"],
|
||||
"mailContext-calendar-convert-menu": [], // Hidden in all contexts.
|
||||
"mailContext-calendar-convert-menu": allSingleSelection,
|
||||
"mailContext-delete": notExternal,
|
||||
"mailContext-ignoreThread": allThreePane,
|
||||
"mailContext-ignoreSubthread": allThreePane,
|
||||
|
|
Загрузка…
Ссылка в новой задаче