Skip to content

Commit f2793f4

Browse files
authored
feat(SharedBlueprints): put global blueprint proposals behind FF - AB-908 (#1253)
1 parent 6450a30 commit f2793f4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ui/src/builder/settings/BuilderSettingsDeploySharedBlueprint.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
/>
2929
</WdsFieldWrapper>
3030

31-
<div class="DeploySharedBlueprint__globalOption">
31+
<div
32+
v-if="isGlobalBlueprintProposalsEnabled"
33+
class="DeploySharedBlueprint__globalOption"
34+
>
3235
<label class="DeploySharedBlueprint__checkbox">
3336
<input v-model="form.proposeAsGlobal" type="checkbox" />
3437
<span>Propose as global blueprint</span>
@@ -78,6 +81,12 @@ const { writerApi } = useWriterApi();
7881
7982
const blueprint = computed(() => wf.getComponentById(props.blueprintId));
8083
84+
const isGlobalBlueprintProposalsEnabled = computed(
85+
() =>
86+
Array.isArray(wf.featureFlags.value) &&
87+
wf.featureFlags.value.includes("global_blueprint_proposals"),
88+
);
89+
8190
const blueprintName = computed(
8291
() => blueprint.value?.content?.key || "Shared Blueprint",
8392
);

0 commit comments

Comments
 (0)