Skip to content

Commit

Permalink
Use patch request and display message
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 2, 2025
1 parent 508b439 commit 88522af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/showcase/components/layout/AppDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
};
Expand Down

0 comments on commit 88522af

Please sign in to comment.