diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-11-13 15:43:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 14:33:13 +0100 |
commit | 444c9b6744f00a0fb8ac31cf0c827c150719bc68 (patch) | |
tree | b4f283ae7a6f7996dc279cc5eabb173c9cc2bad9 /apps/files_sharing/src/mixins | |
parent | efce1fdfaca81353414c2a752dcebfa3ca4135e6 (diff) | |
download | nextcloud-server-444c9b6744f00a0fb8ac31cf0c827c150719bc68.tar.gz nextcloud-server-444c9b6744f00a0fb8ac31cf0c827c150719bc68.zip |
Add settings front and split sharing entry config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/mixins')
-rw-r--r-- | apps/files_sharing/src/mixins/SharesMixin.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index d012f35591d..a0ec0748951 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -83,23 +83,6 @@ export default { computed: { /** - * Does the current share have an expiration date - * @returns {boolean} - */ - hasExpirationDate: { - get: function() { - return this.config.isDefaultExpireDateEnforced || !!this.share.expireDate - }, - set: function(enabled) { - this.share.expireDate = enabled - ? this.config.defaultExpirationDateString !== '' - ? this.config.defaultExpirationDateString - : moment().format('YYYY-MM-DD') - : '' - } - }, - - /** * Does the current share have a note * @returns {boolean} */ @@ -118,11 +101,6 @@ export default { return moment().add(1, 'days') }, - dateMaxEnforced() { - return this.config.isDefaultExpireDateEnforced - && moment().add(1 + this.config.defaultExpireDate, 'days') - }, - /** * Datepicker lang values * https://github.com/nextcloud/nextcloud-vue/pull/146 |