mirror of https://github.com/statping/statping
add error for theme editor
parent
04a04ad715
commit
1044337ec6
|
@ -107,7 +107,12 @@
|
||||||
},
|
},
|
||||||
async createAssets() {
|
async createAssets() {
|
||||||
this.pending = true
|
this.pending = true
|
||||||
const resp = await Api.theme_generate(true)
|
let resp
|
||||||
|
try {
|
||||||
|
resp = await Api.theme_generate(true)
|
||||||
|
} catch(e) {
|
||||||
|
this.error = e.response.data.error
|
||||||
|
}
|
||||||
this.pending = false
|
this.pending = false
|
||||||
await this.fetchTheme()
|
await this.fetchTheme()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue