Files
ComfyUI_frontend/src/components/dialog/content/setting/FirstTimeUIMessage.vue
Chenlei Hu f0b735f3dd Enable New UI by default (#1460)
* Enable New UI by default

* nit

* Add playwright test

* nit

* nit

* nit
2024-11-07 17:55:53 -05:00

26 lines
675 B
Vue

<template>
<Message
v-if="show"
class="first-time-ui-message m-2"
severity="info"
:closable="true"
@close="handleClose"
>
{{ $t('firstTimeUIMessage') }}
</Message>
</template>
<script setup lang="ts">
import { useSettingStore } from '@/stores/settingStore'
import Message from 'primevue/message'
import { computed } from 'vue'
const settingStore = useSettingStore()
const show = computed(() => !settingStore.exists('Comfy.UseNewMenu'))
const handleClose = () => {
// Explicitly write the current value to the store.
const currentValue = settingStore.get('Comfy.UseNewMenu')
settingStore.set('Comfy.UseNewMenu', currentValue)
}
</script>