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

View File

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

View File

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