changed sel
This commit is contained in:
@@ -11,8 +11,11 @@ const color = ref("...");
|
|||||||
const fonts_list = ref(["Public Sans","Space Grotesk", "Geist"])
|
const fonts_list = ref(["Public Sans","Space Grotesk", "Geist"])
|
||||||
const font = ref("...");
|
const font = ref("...");
|
||||||
|
|
||||||
|
const ready = ref(false);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
color.value = ui_color_cookie().value
|
color.value = ui_color_cookie().value
|
||||||
|
ready.value = true
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(color, (newVal, oldVal) => {
|
watch(color, (newVal, oldVal) => {
|
||||||
@@ -32,6 +35,7 @@ watch(color, (newVal, oldVal) => {
|
|||||||
description="Select the main color of the UI"
|
description="Select the main color of the UI"
|
||||||
size="lg"
|
size="lg"
|
||||||
class="flex justify-between w-full mt-3 mb-3"
|
class="flex justify-between w-full mt-3 mb-3"
|
||||||
|
:disabled="!ready"
|
||||||
>
|
>
|
||||||
<USelect v-model="color" :items="colors_list" />
|
<USelect v-model="color" :items="colors_list" />
|
||||||
</UFormField>
|
</UFormField>
|
||||||
@@ -50,6 +54,7 @@ watch(color, (newVal, oldVal) => {
|
|||||||
description="Select which font you want"
|
description="Select which font you want"
|
||||||
size="lg"
|
size="lg"
|
||||||
class="flex justify-between w-full mt-3 mb-3"
|
class="flex justify-between w-full mt-3 mb-3"
|
||||||
|
:disabled="!ready"
|
||||||
>
|
>
|
||||||
<USelect v-model="font" :items="fonts_list" />
|
<USelect v-model="font" :items="fonts_list" />
|
||||||
</UFormField>
|
</UFormField>
|
||||||
|
|||||||
Reference in New Issue
Block a user