Skip to content

Commit 99d3f83

Browse files
committed
Do not always show "Save" in ACL Tab
Only show the "Save" and "Cancel" buttons in the ACL tab if there is something to save or cancel. This is in line with the behaviour of other tabs.
1 parent e4f693c commit 99d3f83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/shared/modals/ResourceDetailsAccessPolicyTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ const ResourceDetailsAccessPolicyTab = ({
368368
}
369369

370370
{/* Save and cancel buttons */}
371-
{!transactions.readOnly && <SaveEditFooter
371+
{!transactions.readOnly && formik.dirty && <SaveEditFooter
372372
active={policyChanged && formik.dirty}
373373
reset={() => resetPolicies(formik.resetForm)}
374374
submit={() => saveAccess(formik.values, false)}

0 commit comments

Comments
 (0)