diff --git a/frontend/src/lib/components/NoDirectDeployAlert.svelte b/frontend/src/lib/components/NoDirectDeployAlert.svelte index c767ed835a..380612e8ea 100644 --- a/frontend/src/lib/components/NoDirectDeployAlert.svelte +++ b/frontend/src/lib/components/NoDirectDeployAlert.svelte @@ -1,4 +1,10 @@ {#if !$userStore?.operator && activeDeployRulesets.length > 0}
- -
- {#if canonicalDev} -

- Edits to this workspace are made in its {devLabelNoun(canonicalDev.dev_workspace_label)} - {canonicalDev.name} ({canonicalDev.id}) and promoted here. -

-
- +
+ {:else} +

+ The rule{activeDeployRulesets.length > 1 ? 's' : ''} + {activeDeployRulesets.map((r) => r.name).join(', ')} + restrict{activeDeployRulesets.length > 1 ? '' : 's'} direct edits to this workspace. + {editAdvice} +

+ {/if} + {#if canBypass} + { - if (canonicalDev) switchWorkspace(canonicalDev.id) - }} - > - Go to {devLabelNoun(canonicalDev.dev_workspace_label)} - -
- {:else} -

- The rule{activeDeployRulesets.length > 1 ? 's' : ''} - {activeDeployRulesets.map((r) => r.name).join(', ')} - restrict{activeDeployRulesets.length > 1 ? '' : 's'} direct edits to this workspace. - {editAdvice} -

- {/if} - {#if canBypass} - - {/if} -
- + bind:checked={overrideChecked} + options={{ right: 'Bypass restriction' }} + /> + {/if} + + {/snippet} + {/if}