[API Node] Adjust notification dismiss logic and message (#3778)

This commit is contained in:
Christian Byrne
2025-05-06 00:51:47 -07:00
committed by GitHub
parent d05a340949
commit 6b98f1de0e
3 changed files with 7 additions and 2 deletions

View File

@@ -35,6 +35,7 @@
<script setup lang="ts">
import Button from 'primevue/button'
import Tag from 'primevue/tag'
import { onBeforeUnmount } from 'vue'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
@@ -66,4 +67,8 @@ const { onClose } = defineProps<{
const handleLearnMore = () => {
window.open('https://blog.comfy.org/p/comfyui-native-api-nodes', '_blank')
}
onBeforeUnmount(() => {
localStorage.setItem('api-nodes-news-seen', 'true')
})
</script>

View File

@@ -1325,7 +1325,7 @@
},
"apiNodesNews": {
"introducing": "Introducing",
"subtitle": "All External Models now available in ComfyUI",
"subtitle": "Access all the popular paid models natively in ComfyUI",
"steps": {
"step1": {
"title": "Login/Create an account:",

View File

@@ -393,6 +393,7 @@ export const useDialogService = () => {
key: 'api-nodes-news',
component: ApiNodesNewsContent,
props: {
dismissableMask: true,
onClose: () => {
dialogStore.closeDialog({ key: 'api-nodes-news' })
localStorage.setItem('api-nodes-news-seen', 'true')
@@ -400,7 +401,6 @@ export const useDialogService = () => {
},
dialogComponentProps: {
closable: false,
modal: false,
position: 'bottomright'
}
})