mirror of https://github.com/portainer/portainer
26 lines
557 B
TypeScript
26 lines
557 B
TypeScript
import { name } from './name';
|
|
import { role } from './role';
|
|
import { status } from './status';
|
|
import { cpu } from './cpu';
|
|
import { memory } from './memory';
|
|
import { version } from './version';
|
|
import { ip } from './ip';
|
|
import { getActions } from './actions';
|
|
|
|
export function getColumns(isServerMetricsEnabled: boolean) {
|
|
if (!isServerMetricsEnabled) {
|
|
return [name, role, status, cpu, memory, version, ip];
|
|
}
|
|
|
|
return [
|
|
name,
|
|
role,
|
|
status,
|
|
cpu,
|
|
memory,
|
|
version,
|
|
ip,
|
|
getActions(isServerMetricsEnabled),
|
|
];
|
|
}
|