Use patch request and display message

pull/7044/head
Cagatay Civici 2025-01-02 11:32:11 +03:00
parent 508b43937d
commit 88522af04d
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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 });
}
}
};