mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Clickable notifications (#745)
This commit is contained in:
parent
69c01e5789
commit
9ade5a585b
5 changed files with 121 additions and 39 deletions
|
|
@ -279,7 +279,8 @@
|
|||
require('Stores/User/Account').email(),
|
||||
Translator.i18n('MESSAGE_LIST/NEW_MESSAGE_NOTIFICATION', {
|
||||
'COUNT': iLen
|
||||
})
|
||||
}),
|
||||
{'Folder': '', 'Uid': ''}
|
||||
);
|
||||
}
|
||||
else
|
||||
|
|
@ -290,7 +291,11 @@
|
|||
Links.notificationMailIcon(),
|
||||
MessageHelper.emailArrayToString(
|
||||
MessageHelper.emailArrayFromJson(aNewMessages[iIndex].From), false),
|
||||
aNewMessages[iIndex].Subject
|
||||
aNewMessages[iIndex].Subject,
|
||||
{
|
||||
'Folder': aNewMessages[iIndex].Folder,
|
||||
'Uid': aNewMessages[iIndex].Uid
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -744,6 +749,24 @@
|
|||
}
|
||||
};
|
||||
|
||||
MessageUserStore.prototype.selectMessageByFolderAndUid = function (sFolder, sUid)
|
||||
{
|
||||
if (sFolder && sUid)
|
||||
{
|
||||
window.console.log(sFolder, sUid);
|
||||
|
||||
this.message(this.staticMessage.populateByMessageListItem(null));
|
||||
this.message().folderFullNameRaw = sFolder;
|
||||
this.message().uid = sUid;
|
||||
|
||||
this.populateMessageBody(this.message());
|
||||
}
|
||||
else
|
||||
{
|
||||
this.message(null);
|
||||
}
|
||||
};
|
||||
|
||||
MessageUserStore.prototype.populateMessageBody = function (oMessage)
|
||||
{
|
||||
if (oMessage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue