mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 18:24:11 +00:00
27 lines
686 B
Vue
27 lines
686 B
Vue
<template>
|
|
<Message
|
|
v-if="show"
|
|
class="first-time-ui-message"
|
|
severity="info"
|
|
:closable="true"
|
|
@close="handleClose"
|
|
>
|
|
{{ $t('g.firstTimeUIMessage') }}
|
|
</Message>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Message from 'primevue/message'
|
|
import { computed } from 'vue'
|
|
|
|
import { useSettingStore } from '@/stores/settingStore'
|
|
|
|
const settingStore = useSettingStore()
|
|
const show = computed(() => !settingStore.exists('Comfy.UseNewMenu'))
|
|
const handleClose = async () => {
|
|
// Explicitly write the current value to the store.
|
|
const currentValue = settingStore.get('Comfy.UseNewMenu')
|
|
await settingStore.set('Comfy.UseNewMenu', currentValue)
|
|
}
|
|
</script>
|