Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntry.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue17
1 files changed, 13 insertions, 4 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index 0e6975d9d57..e07654a19c1 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -222,8 +222,12 @@ export default {
},
canHaveNote() {
- return this.share.type !== this.SHARE_TYPES.SHARE_TYPE_REMOTE
- && this.share.type !== this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP
+ return !this.isRemote
+ },
+
+ isRemote() {
+ return this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE
+ || this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP
},
/**
@@ -348,8 +352,13 @@ export default {
},
dateMaxEnforced() {
- return this.config.isDefaultInternalExpireDateEnforced
- && moment().add(1 + this.config.defaultInternalExpireDate, 'days')
+ if (!this.isRemote) {
+ return this.config.isDefaultInternalExpireDateEnforced
+ && moment().add(1 + this.config.defaultInternalExpireDate, 'days')
+ } else {
+ return this.config.isDefaultRemoteExpireDateEnforced
+ && moment().add(1 + this.config.defaultRemoteExpireDate, 'days')
+ }
},
/**