diff options
Diffstat (limited to 'apps/files_sharing/src/mixins/SharesMixin.js')
-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 |