diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-13 14:14:25 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-14 19:15:02 +0300 |
commit | 897111404a3f8014b92af4e387a3561a0e8ff547 (patch) | |
tree | 17518bbbd0f0ea66442a89678b4553c15d91a7e5 /apps/files_sharing/src/models | |
parent | 092a1fb90f57639a15adc5a8e565b53debe26a8a (diff) |
Add "Password protected by Talk" option to shares
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/models')
-rw-r--r-- | apps/files_sharing/src/models/Share.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js index 35a95119542..1c8c24cfc7b 100644 --- a/apps/files_sharing/src/models/Share.js +++ b/apps/files_sharing/src/models/Share.js @@ -306,6 +306,28 @@ export default class Share { this.#share.password = password } + /** + * Password protection by Talk of the share + * + * @returns {Boolean} + * @readonly + * @memberof Share + */ + get sendPasswordByTalk() { + return this.#share.send_password_by_talk + } + + /** + * Password protection by Talk of the share + * + * @param {Boolean} sendPasswordByTalk whether to send the password by Talk + * or not + * @memberof Share + */ + set sendPasswordByTalk(sendPasswordByTalk) { + this.#share.send_password_by_talk = sendPasswordByTalk + } + // SHARED ITEM DATA --------------------------------------------- /** * Get the shared item absolute full path |