mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-03 02:25:25 +00:00
(js) Fix reply and compose message links
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
this.$mailbox = mailbox;
|
||||
this.$hasUnsafeContent = false;
|
||||
this.$loadUnsafeContent = false;
|
||||
this.$showDetailedRecipients = false;
|
||||
this.editable = {to: [], cc: [], bcc: []};
|
||||
this.selected = false;
|
||||
|
||||
@@ -248,15 +247,6 @@
|
||||
this.$loadUnsafeContent = true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function showDetailedRecipients
|
||||
* @memberof Message.prototype
|
||||
* @desc Mark the message to show all to/cc recipients.
|
||||
*/
|
||||
Message.prototype.showDetailedRecipients = function() {
|
||||
this.$showDetailedRecipients = true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $content
|
||||
* @memberof Message.prototype
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
vm.service = Message;
|
||||
vm.tags = { searchText: '', selected: '' };
|
||||
vm.showFlags = stateMessage.flags && stateMessage.flags.length > 0;
|
||||
vm.$showDetailedRecipients = false;
|
||||
vm.showDetailedRecipients = showDetailedRecipients;
|
||||
vm.doDelete = doDelete;
|
||||
vm.close = close;
|
||||
vm.reply = reply;
|
||||
@@ -39,6 +41,12 @@
|
||||
});
|
||||
});
|
||||
|
||||
function showDetailedRecipients($event) {
|
||||
vm.$showDetailedRecipients = true;
|
||||
$event.stopPropagation();
|
||||
$event.preventDefault();
|
||||
}
|
||||
|
||||
function doDelete() {
|
||||
stateMailbox.$deleteMessages([stateMessage.uid]).then(function() {
|
||||
// Remove message from list of messages
|
||||
@@ -137,6 +145,8 @@
|
||||
function newMessage($event, recipient) {
|
||||
var message = vm.account.$newMessage();
|
||||
showMailEditor($event, message, [recipient]);
|
||||
$event.stopPropagation();
|
||||
$event.preventDefault();
|
||||
}
|
||||
|
||||
function saveMessage() {
|
||||
|
||||
Reference in New Issue
Block a user