Skip to content

Commit 0bd101f

Browse files
committed
feat: keep signature flow override toggle visible
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 7d19aee commit 0bd101f

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

src/views/Settings/PolicyWorkbench/RealPolicyWorkbench.vue

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
:save-status="saveStatus"
337337
:show-inline-actions="false"
338338
:show-back-button="showCreateRuleBackAction"
339-
:show-allow-override-switch="state.activeDefinition?.key !== 'signature_flow'"
339+
:show-allow-override-switch="true"
340340
@search-targets="state.searchAvailableTargets"
341341
@update-targets="onTargetChange"
342342
@update-value="state.updateDraftValue"
@@ -921,21 +921,8 @@ function selectCreateScope(scope: 'system' | 'group' | 'user') {
921921
startCreateRuleForScope(scope)
922922
}
923923
924-
function shouldLockSignatureFlowOverride(scope: 'system' | 'group' | 'user') {
925-
return state.activeDefinition?.key === 'signature_flow' && scope !== 'user'
926-
}
927-
928-
function normalizeEditorDraftSignatureFlowOverride() {
929-
if (!state.editorDraft || !shouldLockSignatureFlowOverride(state.editorDraft.scope)) {
930-
return
931-
}
932-
933-
state.editorDraft.allowChildOverride = false
934-
}
935-
936924
function openRuleEditor(scope: 'system' | 'group' | 'user', ruleId?: string) {
937925
state.startEditor(ruleId ? { scope, ruleId } : { scope })
938-
normalizeEditorDraftSignatureFlowOverride()
939926
}
940927
941928
function startCreateRuleForScope(scope: 'system' | 'group' | 'user') {
@@ -1118,7 +1105,6 @@ async function handleSaveDraft() {
11181105
return
11191106
}
11201107
1121-
normalizeEditorDraftSignatureFlowOverride()
11221108
saveStatus.value = 'saving'
11231109
await nextTick()
11241110
await state.saveDraft()

0 commit comments

Comments
 (0)