diff options
author | dartcafe <github@dartcafe.de> | 2020-08-20 22:46:17 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-08-20 22:46:17 +0300 |
commit | 6b73deac12a2dabc4d94b92ce91eebd04620e3bb (patch) | |
tree | 94b2353067dd4e50fdde5ebb650467a3fa247ff0 /src/js/components/PollList | |
parent | c7f111b583bc1a27c2654c94d2c067fab329ce23 (diff) |
migrate to @nextcloud/dialogs
Diffstat (limited to 'src/js/components/PollList')
-rw-r--r-- | src/js/components/PollList/PollItem.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/js/components/PollList/PollItem.vue b/src/js/components/PollList/PollItem.vue index 88fe996c..2bad02e2 100644 --- a/src/js/components/PollList/PollItem.vue +++ b/src/js/components/PollList/PollItem.vue @@ -110,8 +110,9 @@ </template> <script> -import { Actions, ActionButton } from '@nextcloud/vue' +import { showError } from '@nextcloud/dialogs' import { emit } from '@nextcloud/event-bus' +import { Actions, ActionButton } from '@nextcloud/vue' import moment from '@nextcloud/moment' export default { @@ -190,7 +191,7 @@ export default { }) .catch((error) => { console.error(error) - OC.Notification.showTemporary(t('polls', 'Error loading poll'), { type: 'error' }) + showError(t('polls', 'Error loading poll')) }) }, @@ -210,7 +211,7 @@ export default { emit('update-polls') }) .catch(() => { - OC.Notification.showTemporary(t('polls', 'Error deleting poll.'), { type: 'error' }) + showError(t('polls', 'Error deleting poll.')) }) this.hideMenu() }, @@ -222,7 +223,7 @@ export default { emit('update-polls') }) .catch(() => { - OC.Notification.showTemporary(t('polls', 'Error deleting poll.'), { type: 'error' }) + showError(t('polls', 'Error deleting poll.')) }) this.hideMenu() }, @@ -234,7 +235,7 @@ export default { emit('update-polls') }) .catch(() => { - OC.Notification.showTemporary(t('polls', 'Error cloning poll.'), { type: 'error' }) + showError(t('polls', 'Error cloning poll.')) }) this.hideMenu() }, |