Use patch request and display message
parent
508b43937d
commit
88522af04d
|
@ -99,7 +99,7 @@ export default {
|
|||
},
|
||||
async saveTheme(theme) {
|
||||
const { error } = await $fetch(this.designerApiBase + '/theme/update', {
|
||||
method: 'POST',
|
||||
method: 'PATCH',
|
||||
headers: {
|
||||
Authorization: `Bearer ${this.$appState.designer.ticket}`,
|
||||
'X-License-Key': this.$appState.designer.licenseKey
|
||||
|
|
|
@ -31,6 +31,7 @@ export default {
|
|||
},
|
||||
apply() {
|
||||
this.designerService.applyTheme(this.$appState.designer.theme);
|
||||
this.$toast.add({ severity: 'success', summary: 'Success', detail: 'Theme saved', life: 3000 });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue