Fix PermissionsViewer on user popouts
This commit is contained in:
parent
4b16fbcaa9
commit
7d8214fc37
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ type UserPermissions = Array<UserPermission>;
|
|||
|
||||
const { RoleRootClasses, RoleClasses, RoleBorderClasses } = proxyLazyWebpack(() => {
|
||||
const [RoleRootClasses, RoleClasses, RoleBorderClasses] = findBulk(
|
||||
filters.byProps("root", "showMoreButton", "collapseButton"),
|
||||
filters.byProps("root", "expandButton", "collapseButton"),
|
||||
filters.byProps("role", "roleCircle", "roleName"),
|
||||
filters.byProps("roleCircle", "dot", "dotBorderColor")
|
||||
) as Record<string, string>[];
|
||||
|
|
|
@ -172,7 +172,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".VIEW_ALL_ROLES,",
|
||||
replacement: {
|
||||
match: /children:"\+"\.concat\(\i\.length-\i\.length\).{0,20}\}\),/,
|
||||
match: /\.collapseButton,.+?}\)}\),/,
|
||||
replace: "$&$self.ViewPermissionsButton(arguments[0]),"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue