Skip to content

Commit

Permalink
Refresh AC tokens after save as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 12, 2024
1 parent 26f20fa commit 486261e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/showcase/components/layout/AppDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ app.mount("#app");
if (defaultTheme.customTokens) {
this.customTokens = defaultTheme.customTokens;
this.acTokens = [];
this.generateACTokens(null, this.preset);
this.refreshACTokens();
}
this.$toast.add({ severity: 'success', summary: 'Success', detail: 'Theme loaded to Designer', life: 3000 });
Expand All @@ -290,6 +289,7 @@ app.mount("#app");
this.preset.extend[this.transformTokenName(token.name)] = token.value;
});
this.refreshACTokens();
this.saveTheme();
this.$toast.add({ severity: 'success', summary: 'Success', detail: 'Tokens saved', life: 3000 });
},
Expand Down Expand Up @@ -331,6 +331,10 @@ app.mount("#app");
}
}
}
},
refreshACTokens() {
this.acTokens = [];
this.generateACTokens(null, this.preset);
}
}
};
Expand Down

0 comments on commit 486261e

Please sign in to comment.