Skip to content

Commit 49f9157

Browse files
committed
fix: improve show/hide checkbox text
1 parent d52bc91 commit 49f9157

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

site/src/pages/ManagementSettingsPage/CustomRolesPage/CreateEditRolePageView.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,13 @@ const ShowAllResourcesCheckbox: FC<ShowAllResourcesCheckboxProps> = ({
308308
icon={<VisibilityOffOutlinedIcon />}
309309
/>
310310
}
311-
label={<span style={{ fontSize: 12 }}>Show all permissions</span>}
311+
label={
312+
<span style={{ fontSize: 12 }}>
313+
{showAllResources
314+
? "Hide advanced permissions"
315+
: "Show advanced permissions"}
316+
</span>
317+
}
312318
/>
313319
);
314320
};

0 commit comments

Comments
 (0)