Add spinner to template editor submit button
This commit is contained in:
parent
8307f81a0b
commit
df2c0d85e6
@ -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
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user