mirror of https://github.com/portainer/portainer
remove clusterrole unused badge
parent
ebfb9ab464
commit
62b02048d6
|
@ -1,5 +1,4 @@
|
|||
import { SystemBadge } from '@@/Badge/SystemBadge';
|
||||
import { UnusedBadge } from '@@/Badge/UnusedBadge';
|
||||
|
||||
import { columnHelper } from './helper';
|
||||
|
||||
|
@ -9,9 +8,6 @@ export const name = columnHelper.accessor(
|
|||
if (row.isSystem) {
|
||||
result += ' system';
|
||||
}
|
||||
if (row.isUnused) {
|
||||
result += ' unused';
|
||||
}
|
||||
return result;
|
||||
},
|
||||
{
|
||||
|
@ -21,7 +17,6 @@ export const name = columnHelper.accessor(
|
|||
<div className="flex gap-2">
|
||||
{row.original.name}
|
||||
{row.original.isSystem && <SystemBadge />}
|
||||
{row.original.isUnused && <UnusedBadge />}
|
||||
</div>
|
||||
),
|
||||
}
|
||||
|
|
|
@ -1,20 +1,7 @@
|
|||
export type Rule = {
|
||||
verbs: string[];
|
||||
apiGroups: string[];
|
||||
resources: string[];
|
||||
};
|
||||
|
||||
export type ClusterRole = {
|
||||
name: string;
|
||||
uid: string;
|
||||
namespace: string;
|
||||
resourceVersion: string;
|
||||
creationDate: string;
|
||||
annotations?: Record<string, string>;
|
||||
|
||||
rules: Rule[];
|
||||
|
||||
isUnused: boolean;
|
||||
uid: string;
|
||||
isSystem: boolean;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue