Fixed mutation
parent
0bebec7111
commit
29afc95ff1
|
@ -101,7 +101,7 @@ export default {
|
||||||
if (this.themeName == null || !this.themeName.trim().length) {
|
if (this.themeName == null || !this.themeName.trim().length) {
|
||||||
this.$toast.add({ severity: 'error', summary: 'Error', detail: 'Name is required', life: 3000 });
|
this.$toast.add({ severity: 'error', summary: 'Error', detail: 'Name is required', life: 3000 });
|
||||||
} else {
|
} else {
|
||||||
const newPreset = presets[this.basePreset];
|
const newPreset = structuredClone(presets[this.basePreset]);
|
||||||
|
|
||||||
if (this.$appState.designer.verified) {
|
if (this.$appState.designer.verified) {
|
||||||
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
|
const { data, error } = await $fetch(this.designerApiUrl + '/theme/create', {
|
||||||
|
|
|
@ -48,11 +48,6 @@
|
||||||
>
|
>
|
||||||
<i class="pi pi-plus"></i>
|
<i class="pi pi-plus"></i>
|
||||||
</button>
|
</button>
|
||||||
<template v-if="loading">
|
|
||||||
<Skeleton class="!rounded-xl !h-32 !w-32">-</Skeleton>
|
|
||||||
<Skeleton class="!rounded-xl !h-32 !w-32">-</Skeleton>
|
|
||||||
</template>
|
|
||||||
<template v-else>
|
|
||||||
<div v-for="theme of $appState.designer.themes" :key="theme.t_key" class="flex flex-col gap-2 relative">
|
<div v-for="theme of $appState.designer.themes" :key="theme.t_key" class="flex flex-col gap-2 relative">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -80,7 +75,6 @@
|
||||||
<i class="pi pi-ellipsis-h !text-xs" />
|
<i class="pi pi-ellipsis-h !text-xs" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
<Menu ref="themeMenu" :model="themeOptions" :popup="true" @show="onMenuShow" @hide="onMenuHide" />
|
<Menu ref="themeMenu" :model="themeOptions" :popup="true" @show="onMenuShow" @hide="onMenuHide" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue