mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-05 05:36:05 +08:00
Latest changes from harvester/master
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -14,9 +14,9 @@ export default {
|
||||
divider,
|
||||
notFilterNamespaces
|
||||
}: any) => {
|
||||
const out: { id: string, kind: string, label: string }[] = [{
|
||||
id: ALL,
|
||||
kind: NAMESPACE_FILTER_KINDS.SPECIAL,
|
||||
const out = [{
|
||||
id: ALL,
|
||||
kind: NAMESPACE_FILTER_KINDS.SPECIAL,
|
||||
label: rootGetters['i18n/t']('nav.ns.all'),
|
||||
}];
|
||||
|
||||
@@ -30,11 +30,9 @@ export default {
|
||||
MANAGEMENT.PROJECT
|
||||
);
|
||||
|
||||
projects = sortBy(
|
||||
filterBy(projects, 'spec.clusterName', cluster.id),
|
||||
['nameDisplay'],
|
||||
null
|
||||
).filter((project: any) => project.nameDisplay !== 'System');
|
||||
projects = sortBy(filterBy(projects, 'spec.clusterName', cluster.id), [
|
||||
'nameDisplay',
|
||||
]).filter((project: any) => project.nameDisplay !== 'System');
|
||||
|
||||
const projectsById: any = {};
|
||||
const namespacesByProject: any = {};
|
||||
@@ -72,8 +70,8 @@ export default {
|
||||
}
|
||||
|
||||
out.push({
|
||||
id: `project://${id}`,
|
||||
kind: 'project',
|
||||
id: `project://${ id }`,
|
||||
kind: 'project',
|
||||
label: project.nameDisplay,
|
||||
});
|
||||
|
||||
@@ -90,8 +88,8 @@ export default {
|
||||
}
|
||||
|
||||
out.push({
|
||||
id: ALL_ORPHANS,
|
||||
kind: 'project',
|
||||
id: ALL_ORPHANS,
|
||||
kind: 'project',
|
||||
label: rootGetters['i18n/t']('nav.ns.orphan'),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user