mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[API Node] Adjust notification dismiss logic and message (#3778)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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:",
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user