mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show system roles on Roles page (#355)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
1 parent
5cd00bd77a
commit
1c324a3ced
3 files changed
+2
-36
No files matched your search
@@ -10,8 +10,6 @@ import { rolesStore } from "./roles.store";
|
||||
import { clusterRoleApi, Role, roleApi } from "../../api/endpoints";
|
||||
import { KubeObjectListLayout } from "../kube-object";
|
||||
import { AddRoleDialog } from "./add-role-dialog";
|
||||
import { Icon } from "../icon";
|
||||
import { KubeObject } from "../../api/kube-object";
|
||||
import { apiManager } from "../../api/api-manager";
|
||||
|
||||
enum sortBy {
|
||||
@@ -39,23 +37,7 @@ export class Roles extends React.Component<Props> {
|
||||
searchFilters={[
|
||||
(role: Role) => role.getSearchFields(),
|
||||
]}
|
||||
filterItems={[
|
||||
(items: Role[]) => items.filter(KubeObject.isNonSystem),
|
||||
]}
|
||||
renderHeaderTitle={<Trans>Roles</Trans>}
|
||||
customizeHeader={({ info }) => ({
|
||||
info: (
|
||||
<>
|
||||
{info}
|
||||
<Icon
|
||||
small
|
||||
material="help_outline"
|
||||
className="help-icon"
|
||||
tooltip={<Trans>Excluded items with "system:" prefix</Trans>}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
})}
|
||||
renderTableHeader={[
|
||||
{ title: <Trans>Name</Trans>, className: "name", sortBy: sortBy.name },
|
||||
{ title: <Trans>Namespace</Trans>, className: "namespace", sortBy: sortBy.namespace },
|
||||
|
||||
Reference in new issue
Block a user