Skip to content

Commit d27ba1e

Browse files
dont show missing nodes button in legacy manager mode
1 parent 8aaa1d2 commit d27ba1e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/dialog/content/LoadWorkflowWarning.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@
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">
3939
import Button from 'primevue/button'
4040
import ListBox from 'primevue/listbox'
41-
import { computed } from 'vue'
41+
import { computed, onMounted, ref } from 'vue'
4242
4343
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
44+
import { useComfyManagerService } from '@/services/comfyManagerService'
4445
import { useDialogService } from '@/services/dialogService'
4546
import type { MissingNodeType } from '@/types/comfy'
4647
import { ManagerTab } from '@/types/comfyManagerTypes'
@@ -49,6 +50,8 @@ const props = defineProps<{
4950
missingNodeTypes: MissingNodeType[]
5051
}>()
5152
53+
const isLegacyManager = ref(false)
54+
5255
const 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

Comments
 (0)