diff options
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index 93feba9c889..241b9c19c0d 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -343,6 +343,13 @@ /** * @returns {string} */ + getReshareNote: function() { + return this.get('reshare').note; + }, + + /** + * @returns {string} + */ getReshareWith: function() { return this.get('reshare').share_with; }, @@ -366,6 +373,10 @@ return this._shareExpireDate(shareIndex); }, + getNote: function(shareIndex) { + return this._shareNote(shareIndex); + }, + /** * Returns all share entries that only apply to the current item * (file/folder) @@ -502,6 +513,15 @@ return date2; }, + + _shareNote: function(shareIndex) { + var share = this.get('shares')[shareIndex]; + if(!_.isObject(share)) { + throw "Unknown Share"; + } + return share.note; + }, + /** * @return {int} */ |