diff options
author | dartcafe <github@dartcafe.de> | 2021-05-16 02:28:18 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-16 02:28:18 +0300 |
commit | 7be521ed1f7f2dcd6039f20c0de5689574caec99 (patch) | |
tree | 1431026cb860fedccb2d7d10d840007fca8c5a5e /src | |
parent | 960f54b1d2a15af3d65fedbe59bd908532d9f7c2 (diff) |
fix
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/components/Shares/SharesPublic.vue | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/js/components/Shares/SharesPublic.vue b/src/js/components/Shares/SharesPublic.vue index d4d1a70e..184a7b95 100644 --- a/src/js/components/Shares/SharesPublic.vue +++ b/src/js/components/Shares/SharesPublic.vue @@ -42,7 +42,8 @@ <script> import { mapGetters } from 'vuex' -import { showError } from '@nextcloud/dialogs' +import { showSuccess, showError } from '@nextcloud/dialogs' +import { Actions, ActionButton } from '@nextcloud/vue' import ActionDelete from '../Actions/ActionDelete' import ButtonDiv from '../Base/ButtonDiv' import ConfigBox from '../Base/ConfigBox' @@ -52,6 +53,8 @@ export default { name: 'SharesPublic', components: { + Actions, + ActionButton, ActionDelete, ButtonDiv, ConfigBox, @@ -79,6 +82,15 @@ export default { this.$store.dispatch('shares/delete', { share }) }, + async copyLink(payload) { + try { + this.$copyText(payload.url) + showSuccess(t('polls', 'Link copied to clipboard')) + } catch { + showError(t('polls', 'Error while copying link to clipboard')) + } + }, + async addShare(payload) { try { await this.$store.dispatch('shares/add', { |