Call callback

prod
Cagatay Civici 2024-11-14 12:02:25 +03:00
parent 7a590a259a
commit 5a03589ef4
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,7 @@
</template> </template>
<script> <script>
import EventBus from '@/app/AppEventBus';
import { NoirPreset } from '@/themes/app-theme.js'; import { NoirPreset } from '@/themes/app-theme.js';
import { $dt, $t, updatePreset, usePreset } from '@primevue/themes'; import { $dt, $t, updatePreset, usePreset } from '@primevue/themes';
import Aura from '@primevue/themes/aura'; import Aura from '@primevue/themes/aura';
@ -371,6 +372,7 @@ export default {
apply() { apply() {
this.saveTheme(); this.saveTheme();
updatePreset(this.preset); updatePreset(this.preset);
EventBus.emit('theme-palette-change');
}, },
download() { download() {
const basePreset = this.$appState.preset; const basePreset = this.$appState.preset;