diff --git a/src/ui/src/builder/sidebar/BuilderSidebarComponentTree.vue b/src/ui/src/builder/sidebar/BuilderSidebarComponentTree.vue index 919174bf6..9c53da375 100644 --- a/src/ui/src/builder/sidebar/BuilderSidebarComponentTree.vue +++ b/src/ui/src/builder/sidebar/BuilderSidebarComponentTree.vue @@ -22,6 +22,7 @@
{{ section.title }} { return allBlueprints.value.filter((c) => isSharedBlueprint(c)); }); +const isSharedBlueprintsEnabled = computed(() => + wf.featureFlags.value?.includes("shared_blueprints"), +); + const blueprintSections = computed(() => { const sections = [ { @@ -129,10 +134,11 @@ const blueprintSections = computed(() => { addAction: "add-blueprint", onAdd: addBlueprint, emptyText: "No blueprints yet", + showAddButton: isSharedBlueprintsEnabled.value, }, ]; - if (wf.featureFlags.value?.includes("shared_blueprints")) { + if (isSharedBlueprintsEnabled.value) { sections.push({ key: "shared-blueprints", title: "Shared Blueprints", @@ -140,6 +146,7 @@ const blueprintSections = computed(() => { addAction: "add-shared-blueprint", onAdd: addSharedBlueprint, emptyText: "No shared blueprints yet", + showAddButton: true, }); }