3030 </div >
3131 </template >
3232 </ListBox >
33- <div class =" flex justify-end py-3" >
33+ <div v-if = " !isLegacyManager " class =" flex justify-end py-3" >
3434 <Button label =" Open Manager" size =" small" outlined @click =" openManager" />
3535 </div >
3636</template >
3737
3838<script setup lang="ts">
3939import Button from ' primevue/button'
4040import ListBox from ' primevue/listbox'
41- import { computed } from ' vue'
41+ import { computed , onMounted , ref } from ' vue'
4242
4343import NoResultsPlaceholder from ' @/components/common/NoResultsPlaceholder.vue'
44+ import { useComfyManagerService } from ' @/services/comfyManagerService'
4445import { useDialogService } from ' @/services/dialogService'
4546import type { MissingNodeType } from ' @/types/comfy'
4647import { ManagerTab } from ' @/types/comfyManagerTypes'
@@ -49,6 +50,8 @@ const props = defineProps<{
4950 missingNodeTypes: MissingNodeType []
5051}>()
5152
53+ const isLegacyManager = ref (false )
54+
5255const uniqueNodes = computed (() => {
5356 const seenTypes = new Set ()
5457 return props .missingNodeTypes
@@ -75,6 +78,13 @@ const openManager = () => {
7578 initialTab: ManagerTab .Missing
7679 })
7780}
81+
82+ onMounted (async () => {
83+ const isLegacyResponse = await useComfyManagerService ().isLegacyManagerUI ()
84+ if (isLegacyResponse ?.is_legacy_manager_ui ) {
85+ isLegacyManager .value = true
86+ }
87+ })
7888 </script >
7989
8090<style scoped>
0 commit comments