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