mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Define Virtualization Management table headers; They will be used in prod build
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { HCI, MANAGEMENT, CAPI } from '@shell/config/types';
|
||||
import { HARVESTER, MULTI_CLUSTER } from '@shell/store/features';
|
||||
import { STATE, NAME as NAME_COL, AGE, VERSION } from '@shell/config/table-headers';
|
||||
import { MACHINE_POOLS } from '../config/table-headers';
|
||||
import { allHash } from '@shell/utils/promise';
|
||||
import { BLANK_CLUSTER } from '@shell/store/store-types.js';
|
||||
|
||||
@@ -8,16 +9,6 @@ export const PRODUCT_NAME = 'harvester-manager';
|
||||
|
||||
export const NAME = 'harvesterManager';
|
||||
|
||||
const MACHINE_POOLS = {
|
||||
name: 'summary',
|
||||
labelKey: 'tableHeaders.machines',
|
||||
sort: false,
|
||||
search: false,
|
||||
value: 'nodes.length',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
};
|
||||
|
||||
const harvesterClustersLocation = {
|
||||
name: 'c-cluster-product-resource',
|
||||
params: {
|
||||
@@ -56,7 +47,7 @@ export function init($plugin, store) {
|
||||
name: 'harvesterVersion',
|
||||
sort: 'harvesterVersion',
|
||||
labelKey: 'harvesterManager.tableHeaders.harvesterVersion',
|
||||
value: 'HarvesterVersion',
|
||||
value: 'harvesterVersion',
|
||||
getValue: (row) => row.harvesterVersion
|
||||
},
|
||||
{
|
||||
|
||||
@@ -77,3 +77,14 @@ export const VM_SCHEDULE_TYPE = {
|
||||
sort: 'spec.vmbackup.type',
|
||||
align: 'center',
|
||||
};
|
||||
|
||||
// The MACHINE_POOLS column in Virtualization Management list page
|
||||
export const MACHINE_POOLS = {
|
||||
name: 'summary',
|
||||
labelKey: 'tableHeaders.machines',
|
||||
sort: false,
|
||||
search: false,
|
||||
value: 'nodes.length',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user