Refractoring Stage 6.12 Bumped the version to 0.4.24 (Android version code 424) and removed the snooze UI’s implicit global call to the productivity label action; it now uses the productivity feature API.
This commit is contained in:
@@ -85,6 +85,7 @@ window.epMailFeatures.productivity = Object.freeze({
|
||||
renderContacts,
|
||||
showEvent,
|
||||
showContact,
|
||||
addMessageLabel,
|
||||
setProfileName,
|
||||
openAccountSettings,
|
||||
get openPreferences() { return openPreferences; },
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
const snoozeMailUi = window.epMailFeatures.mail;
|
||||
const snoozeProductivityUi = window.epMailFeatures.productivity;
|
||||
|
||||
function localDateTimeValue(date) {
|
||||
const local = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
||||
@@ -147,7 +148,7 @@ document.addEventListener('click', event => {
|
||||
snoozeMailUi.select('#modal-root').innerHTML = '';
|
||||
if (!message) return;
|
||||
if (action.dataset.messageAction === 'snooze') openSnoozeDialog([message]);
|
||||
else if (action.dataset.messageAction === 'label') addMessageLabel(message);
|
||||
else if (action.dataset.messageAction === 'label') snoozeProductivityUi.addMessageLabel(message);
|
||||
else {
|
||||
const type = action.dataset.messageAction;
|
||||
messageAction(message, type).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user