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