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/views')
-rw-r--r--apps/files_sharing/src/views/SharingInherited.vue16
-rw-r--r--apps/files_sharing/src/views/SharingLinkList.vue16
-rw-r--r--apps/files_sharing/src/views/SharingList.vue14
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue28
4 files changed, 37 insertions, 37 deletions
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue
index 64c69301267..64c0132e05e 100644
--- a/apps/files_sharing/src/views/SharingInherited.vue
+++ b/apps/files_sharing/src/views/SharingInherited.vue
@@ -56,15 +56,15 @@ export default {
components: {
ActionButton,
SharingEntryInherited,
- SharingEntrySimple
+ SharingEntrySimple,
},
props: {
fileInfo: {
type: Object,
default: () => {},
- required: true
- }
+ required: true,
+ },
},
data() {
@@ -72,7 +72,7 @@ export default {
loaded: false,
loading: false,
showInheritedShares: false,
- shares: []
+ shares: [],
}
},
computed: {
@@ -96,12 +96,12 @@ export default {
fullPath() {
const path = `${this.fileInfo.path}/${this.fileInfo.name}`
return path.replace('//', '/')
- }
+ },
},
watch: {
fileInfo() {
this.resetState()
- }
+ },
},
methods: {
/**
@@ -142,8 +142,8 @@ export default {
this.loading = false
this.showInheritedShares = false
this.shares = []
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue
index 1c01886ca46..5063f1c0da4 100644
--- a/apps/files_sharing/src/views/SharingLinkList.vue
+++ b/apps/files_sharing/src/views/SharingLinkList.vue
@@ -53,7 +53,7 @@ export default {
name: 'SharingLinkList',
components: {
- SharingEntryLink
+ SharingEntryLink,
},
mixins: [ShareTypes],
@@ -62,17 +62,17 @@ export default {
fileInfo: {
type: Object,
default: () => {},
- required: true
+ required: true,
},
shares: {
type: Array,
default: () => [],
- required: true
+ required: true,
},
canReshare: {
type: Boolean,
- required: true
- }
+ required: true,
+ },
},
computed: {
@@ -94,7 +94,7 @@ export default {
*/
hasShares() {
return this.shares.length > 0
- }
+ },
},
methods: {
@@ -135,7 +135,7 @@ export default {
removeShare(share) {
const index = this.shares.findIndex(item => item === share)
this.shares.splice(index, 1)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/files_sharing/src/views/SharingList.vue b/apps/files_sharing/src/views/SharingList.vue
index c2ecbbbd1aa..b8f12f6ef15 100644
--- a/apps/files_sharing/src/views/SharingList.vue
+++ b/apps/files_sharing/src/views/SharingList.vue
@@ -39,26 +39,26 @@ export default {
name: 'SharingList',
components: {
- SharingEntry
+ SharingEntry,
},
props: {
fileInfo: {
type: Object,
default: () => {},
- required: true
+ required: true,
},
shares: {
type: Array,
default: () => [],
- required: true
- }
+ required: true,
+ },
},
computed: {
hasShares() {
return this.shares.length === 0
- }
+ },
},
methods: {
@@ -70,7 +70,7 @@ export default {
removeShare(share) {
const index = this.shares.findIndex(item => item === share)
this.shares.splice(index, 1)
- }
- }
+ },
+ },
}
</script>
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index b15ec5e9a64..54c5a69a90c 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -114,7 +114,7 @@ export default {
SharingInput,
SharingLinkList,
SharingList,
- Tab
+ Tab,
},
mixins: [ShareTypes],
@@ -123,8 +123,8 @@ export default {
fileInfo: {
type: Object,
default: () => {},
- required: true
- }
+ required: true,
+ },
},
data() {
@@ -139,7 +139,7 @@ export default {
sharedWithMe: {},
shares: [],
linkShares: [],
- sections: OCA.Sharing.ShareTabSections.getSections()
+ sections: OCA.Sharing.ShareTabSections.getSections(),
}
},
@@ -176,14 +176,14 @@ export default {
canReshare() {
return !!(this.fileInfo.permissions & OC.PERMISSION_SHARE)
|| !!(this.reshare && this.reshare.hasSharePermission)
- }
+ },
},
watch: {
fileInfo() {
this.resetState()
this.getShares()
- }
+ },
},
beforeMount() {
@@ -209,15 +209,15 @@ export default {
params: {
format,
path,
- reshares: true
- }
+ reshares: true,
+ },
})
const fetchSharedWithMe = axios.get(shareUrl, {
params: {
format,
path,
- shared_with_me: true
- }
+ shared_with_me: true,
+ },
})
// wait for data
@@ -254,7 +254,7 @@ export default {
updateExpirationSubtitle(share) {
const expiration = moment(share.expireDate).unix()
this.$set(this.sharedWithMe, 'subtitle', t('files_sharing', 'Expires {relativetime}', {
- relativetime: OC.Util.relativeModifiedDate(expiration * 1000)
+ relativetime: OC.Util.relativeModifiedDate(expiration * 1000),
}))
// share have expired
@@ -301,7 +301,7 @@ export default {
this.sharedWithMe = {
displayName,
title,
- user
+ user,
}
this.reshare = share
@@ -329,8 +329,8 @@ export default {
} else {
this.shares.unshift(share)
}
- }
- }
+ },
+ },
}
</script>