mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-17 11:27:59 +00:00
(feat) "Materialization" of the IMIP handling template
This commit is contained in:
committed by
Francis Lachapelle
parent
fb992db5ad
commit
8124faa6d4
@@ -291,6 +291,25 @@
|
||||
return Message.$$resource.post(this.$mailbox.$id(), 'addOrRemoveLabel', data);
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $imipAction
|
||||
* @memberof Message.prototype
|
||||
* @desc Perform IMIP actions on the current message.
|
||||
* @param {string} path - the path of the IMIP calendar part
|
||||
* @param {string} action - the the IMIP action to perform
|
||||
* @param {object} data - the delegation info
|
||||
*/
|
||||
Message.prototype.$imipAction = function(path, action, data) {
|
||||
var _this = this;
|
||||
Message.$$resource.post([this.id, path].join('/'), action, data).then(function(data) {
|
||||
Message.$timeout(function() {
|
||||
_this.$reload();
|
||||
}, function() {
|
||||
// TODO: show toast
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $markAsFlaggedOrUnflagged
|
||||
* @memberof Message.prototype
|
||||
|
||||
Reference in New Issue
Block a user