diff options
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index d9060881f15..d59f569dd0e 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -27,16 +27,17 @@ class="sharing-entry__avatar" /> <div class="sharing-entry__summary"> - <div class="sharing-entry__desc"> + <div class="sharing-entry__desc" @click.prevent="toggleQuickShareSelect"> <span class="sharing-entry__title" :title="title"> {{ title }} </span> <p v-if="subtitle"> {{ subtitle }} </p> - <SharingEntryQuickShareSelect v-if="share && share.permissions !== undefined" + <QuickShareSelect v-if="share && share.permissions !== undefined" :share="share" :file-info="fileInfo" + :toggle="showDropdown" @open-sharing-details="openShareDetailsForCustomSettings(share)" /> </div> @@ -198,7 +199,7 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import Tune from 'vue-material-design-icons/Tune.vue' -import SharingEntryQuickShareSelect from './SharingEntryQuickShareSelect.vue' +import QuickShareSelect from './SharingEntryQuickShareSelect.vue' import ExternalShareAction from './ExternalShareAction.vue' import GeneratePassword from '../utils/GeneratePassword.js' @@ -219,7 +220,7 @@ export default { NcActionSeparator, NcAvatar, Tune, - SharingEntryQuickShareSelect, + QuickShareSelect, }, mixins: [SharesMixin, ShareDetails], @@ -237,6 +238,7 @@ export default { data() { return { + showDropdown: false, copySuccess: true, copied: false, @@ -728,6 +730,10 @@ export default { // YET. We can safely delete the share :) this.$emit('remove:share', this.share) }, + + toggleQuickShareSelect() { + this.showDropdown = !this.showDropdown + }, }, } </script> |