3
0

Add spinner to template editor submit button

This commit is contained in:
Emmy Leke 2022-12-20 21:43:05 +01:00 committed by EmmyMay
parent 8307f81a0b
commit df2c0d85e6

View File

@ -192,6 +192,7 @@ export default {
},
onInfoSubmit (template) {
this.info.processing = true
this.incLoader()
if (this.templateID) {
@ -204,6 +205,7 @@ export default {
.catch(this.toastErrorHandler(this.$t('notification:template.update.error')))
.finally(() => {
this.decLoader()
this.info.processing = false
})
} else {
this.$SystemAPI.templateCreate(template)
@ -216,6 +218,7 @@ export default {
.catch(this.toastErrorHandler(this.$t('notification:template.create.error')))
.finally(() => {
this.decLoader()
this.info.processing = false
})
}
},