Skip to content

Commit fbcd81d

Browse files
[API Node] Adjust notification dismiss logic and message (#3778) (#3780)
1 parent f937efa commit fbcd81d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/dialog/content/ApiNodesNewsContent.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<script setup lang="ts">
3636
import Button from 'primevue/button'
3737
import Tag from 'primevue/tag'
38+
import { onBeforeUnmount } from 'vue'
3839
import { useI18n } from 'vue-i18n'
3940
4041
const { t } = useI18n()
@@ -66,4 +67,8 @@ const { onClose } = defineProps<{
6667
const handleLearnMore = () => {
6768
window.open('https://blog.comfy.org/p/comfyui-native-api-nodes', '_blank')
6869
}
70+
71+
onBeforeUnmount(() => {
72+
localStorage.setItem('api-nodes-news-seen', 'true')
73+
})
6974
</script>

src/locales/en/main.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@
12111211
},
12121212
"apiNodesNews": {
12131213
"introducing": "Introducing",
1214-
"subtitle": "All External Models now available in ComfyUI",
1214+
"subtitle": "Access all the popular paid models natively in ComfyUI",
12151215
"steps": {
12161216
"step1": {
12171217
"title": "Login/Create an account:",

src/services/dialogService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,14 @@ export const useDialogService = () => {
393393
key: 'api-nodes-news',
394394
component: ApiNodesNewsContent,
395395
props: {
396+
dismissableMask: true,
396397
onClose: () => {
397398
dialogStore.closeDialog({ key: 'api-nodes-news' })
398399
localStorage.setItem('api-nodes-news-seen', 'true')
399400
}
400401
},
401402
dialogComponentProps: {
402403
closable: false,
403-
modal: false,
404404
position: 'bottomright'
405405
}
406406
})

0 commit comments

Comments
 (0)