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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-05-15 17:35:26 +0300
committerdartcafe <github@dartcafe.de>2021-05-15 17:35:26 +0300
commit1f21199e12273526a951c9311d0ffed039343483 (patch)
treefbceac5be0eb644e0f3df601c2272005ed6ea4ea /src
parent0200ba91fd56d97debbf78cba3443349a1ddf781 (diff)
deleteAction for shares
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r--src/js/components/Shares/SharesEffective.vue10
-rw-r--r--src/js/components/Shares/SharesPublic.vue10
-rw-r--r--src/js/components/Shares/SharesUnsent.vue10
3 files changed, 15 insertions, 15 deletions
diff --git a/src/js/components/Shares/SharesEffective.vue b/src/js/components/Shares/SharesEffective.vue
index dcad53b6..39f33c38 100644
--- a/src/js/components/Shares/SharesEffective.vue
+++ b/src/js/components/Shares/SharesEffective.vue
@@ -38,11 +38,9 @@
{{ t('polls', 'Copy link to clipboard') }}
</ActionButton>
</Actions>
- <Actions>
- <ActionButton icon="icon-delete" @click="removeShare(share)">
- {{ t('polls', 'Remove share') }}
- </ActionButton>
- </Actions>
+ <ActionDelete
+ :delete-caption="t('polls', 'Remove share')"
+ @delete="removeShare(share)" />
</UserItem>
</TransitionGroup>
</ConfigBox>
@@ -52,6 +50,7 @@
import { mapGetters } from 'vuex'
import { showSuccess, showError } from '@nextcloud/dialogs'
import { Actions, ActionButton } from '@nextcloud/vue'
+import ActionDelete from '../Actions/ActionDelete'
import ConfigBox from '../Base/ConfigBox'
export default {
@@ -60,6 +59,7 @@ export default {
components: {
Actions,
ActionButton,
+ ActionDelete,
ConfigBox,
},
diff --git a/src/js/components/Shares/SharesPublic.vue b/src/js/components/Shares/SharesPublic.vue
index 79bf5b6f..4ded3e81 100644
--- a/src/js/components/Shares/SharesPublic.vue
+++ b/src/js/components/Shares/SharesPublic.vue
@@ -31,11 +31,9 @@
{{ t('polls', 'Copy link to clipboard') }}
</ActionButton>
</Actions>
- <Actions>
- <ActionButton icon="icon-delete" @click="removeShare(share)">
- {{ t('polls', 'Remove share') }}
- </ActionButton>
- </Actions>
+ <ActionDelete
+ :delete-caption="t('polls', 'Remove share')"
+ @delete="removeShare(share)" />
</PublicShareItem>
</TransitionGroup>
@@ -47,6 +45,7 @@
import { mapGetters } from 'vuex'
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'
import PublicShareItem from './PublicShareItem'
@@ -57,6 +56,7 @@ export default {
components: {
Actions,
ActionButton,
+ ActionDelete,
ButtonDiv,
ConfigBox,
PublicShareItem,
diff --git a/src/js/components/Shares/SharesUnsent.vue b/src/js/components/Shares/SharesUnsent.vue
index 067946bf..1225d5a5 100644
--- a/src/js/components/Shares/SharesUnsent.vue
+++ b/src/js/components/Shares/SharesUnsent.vue
@@ -41,11 +41,9 @@
{{ t('polls', 'Resolve into individual invitations') }}
</ActionButton>
</Actions>
- <Actions>
- <ActionButton icon="icon-delete" @click="removeShare(share)">
- {{ t('polls', 'Remove invitation') }}
- </ActionButton>
- </Actions>
+ <ActionDelete
+ :delete-caption="t('polls', 'Remove invitation')"
+ @delete="removeShare(share)" />
</UserItem>
</TransitionGroup>
</ConfigBox>
@@ -55,6 +53,7 @@
import { mapGetters } from 'vuex'
import { showSuccess, showError } from '@nextcloud/dialogs'
import { Actions, ActionButton } from '@nextcloud/vue'
+import ActionDelete from '../Actions/ActionDelete'
import ConfigBox from '../Base/ConfigBox'
export default {
@@ -63,6 +62,7 @@ export default {
components: {
Actions,
ActionButton,
+ ActionDelete,
ConfigBox,
},