30
30
</div >
31
31
</template >
32
32
</ListBox >
33
- <div class =" flex justify-end py-3" >
33
+ <div v-if = " !isLegacyManager " class =" flex justify-end py-3" >
34
34
<Button label =" Open Manager" size =" small" outlined @click =" openManager" />
35
35
</div >
36
36
</template >
37
37
38
38
<script setup lang="ts">
39
39
import Button from ' primevue/button'
40
40
import ListBox from ' primevue/listbox'
41
- import { computed } from ' vue'
41
+ import { computed , onMounted , ref } from ' vue'
42
42
43
43
import NoResultsPlaceholder from ' @/components/common/NoResultsPlaceholder.vue'
44
+ import { useComfyManagerService } from ' @/services/comfyManagerService'
44
45
import { useDialogService } from ' @/services/dialogService'
45
46
import type { MissingNodeType } from ' @/types/comfy'
46
47
import { ManagerTab } from ' @/types/comfyManagerTypes'
@@ -49,6 +50,8 @@ const props = defineProps<{
49
50
missingNodeTypes: MissingNodeType []
50
51
}>()
51
52
53
+ const isLegacyManager = ref (false )
54
+
52
55
const uniqueNodes = computed (() => {
53
56
const seenTypes = new Set ()
54
57
return props .missingNodeTypes
@@ -75,6 +78,13 @@ const openManager = () => {
75
78
initialTab: ManagerTab .Missing
76
79
})
77
80
}
81
+
82
+ onMounted (async () => {
83
+ const isLegacyResponse = await useComfyManagerService ().isLegacyManagerUI ()
84
+ if (isLegacyResponse ?.is_legacy_manager_ui ) {
85
+ isLegacyManager .value = true
86
+ }
87
+ })
78
88
</script >
79
89
80
90
<style scoped>
0 commit comments