No need to show notification on successful delete
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
f68904c619
commit
62b9f0c959
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { generateUrl } from '@nextcloud/router'
|
import { generateUrl } from '@nextcloud/router'
|
||||||
import { showError, showSuccess } from '@nextcloud/dialogs'
|
import { showError } from '@nextcloud/dialogs'
|
||||||
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
|
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
|
||||||
import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
|
import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
|
||||||
import ActionRouter from '@nextcloud/vue/dist/Components/ActionRouter'
|
import ActionRouter from '@nextcloud/vue/dist/Components/ActionRouter'
|
||||||
|
@ -146,7 +146,6 @@ export default {
|
||||||
try {
|
try {
|
||||||
await axios.delete(generateUrl('/apps/forms/api/v1/form/{id}', { id: this.form.id }))
|
await axios.delete(generateUrl('/apps/forms/api/v1/form/{id}', { id: this.form.id }))
|
||||||
this.$emit('delete', this.form.id)
|
this.$emit('delete', this.form.id)
|
||||||
showSuccess(t('forms', 'Deleted form “{title}”', { title: this.form.title }))
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
showError(t('forms', 'Error while deleting form “{title}”', { title: this.form.title }))
|
showError(t('forms', 'Error while deleting form “{title}”', { title: this.form.title }))
|
||||||
console.error(error.response)
|
console.error(error.response)
|
||||||
|
|
Loading…
Reference in a new issue