|
336 | 336 | :save-status="saveStatus" |
337 | 337 | :show-inline-actions="false" |
338 | 338 | :show-back-button="showCreateRuleBackAction" |
339 | | - :show-allow-override-switch="state.activeDefinition?.key !== 'signature_flow'" |
| 339 | + :show-allow-override-switch="true" |
340 | 340 | @search-targets="state.searchAvailableTargets" |
341 | 341 | @update-targets="onTargetChange" |
342 | 342 | @update-value="state.updateDraftValue" |
@@ -921,21 +921,8 @@ function selectCreateScope(scope: 'system' | 'group' | 'user') { |
921 | 921 | startCreateRuleForScope(scope) |
922 | 922 | } |
923 | 923 |
|
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 | | -
|
936 | 924 | function openRuleEditor(scope: 'system' | 'group' | 'user', ruleId?: string) { |
937 | 925 | state.startEditor(ruleId ? { scope, ruleId } : { scope }) |
938 | | - normalizeEditorDraftSignatureFlowOverride() |
939 | 926 | } |
940 | 927 |
|
941 | 928 | function startCreateRuleForScope(scope: 'system' | 'group' | 'user') { |
@@ -1118,7 +1105,6 @@ async function handleSaveDraft() { |
1118 | 1105 | return |
1119 | 1106 | } |
1120 | 1107 |
|
1121 | | - normalizeEditorDraftSignatureFlowOverride() |
1122 | 1108 | saveStatus.value = 'saving' |
1123 | 1109 | await nextTick() |
1124 | 1110 | await state.saveDraft() |
|
0 commit comments