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/Create/CreateDlg.vue | |
parent | c7f111b583bc1a27c2654c94d2c067fab329ce23 (diff) |
migrate to @nextcloud/dialogs
Diffstat (limited to 'src/js/components/Create/CreateDlg.vue')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index f86131c2..c825fd29 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -63,6 +63,7 @@ <script> import { mapState } from 'vuex' +import { showSuccess, showError } from '@nextcloud/dialogs' import { emit } from '@nextcloud/event-bus' import ConfigBox from '../Base/ConfigBox' @@ -103,11 +104,11 @@ export default { .then((response) => { emit('update-polls') this.cancel() - OC.Notification.showTemporary(t('polls', 'Poll "{pollTitle}" added', { pollTitle: response.data.id }), { type: 'success' }) + showSuccess(t('polls', 'Poll "{pollTitle}" added', { pollTitle: response.data.id })) this.$router.push({ name: 'vote', params: { id: response.data.id } }) }) .catch(() => { - OC.Notification.showTemporary(t('polls', 'Error while creating Poll "{pollTitle}"', { pollTitle: this.title }), { type: 'error' }) + showError(t('polls', 'Error while creating Poll "{pollTitle}"', { pollTitle: this.title })) }) }, |