Skip to content

Commit

Permalink
Converting the management cluster list and detail pages to be paginated
Browse files Browse the repository at this point in the history
fixes #9548
  • Loading branch information
codyrancher committed Jan 24, 2025
1 parent 0cd9bff commit 46cc4bc
Show file tree
Hide file tree
Showing 9 changed files with 489 additions and 372 deletions.
20 changes: 10 additions & 10 deletions shell/config/product/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ import { BLANK_CLUSTER } from '@shell/store/store-types.js';

export const NAME = 'manager';

export const MACHINE_SUMMARY = {
name: 'summary',
labelKey: 'tableHeaders.machines',
sort: false,
search: false,
formatter: 'MachineSummaryGraph',
align: 'center',
width: 100,
};

export function init(store) {
const {
product,
Expand Down Expand Up @@ -162,16 +172,6 @@ export function init(store) {

weightGroup('advanced', -1, true);

const MACHINE_SUMMARY = {
name: 'summary',
labelKey: 'tableHeaders.machines',
sort: false,
search: false,
formatter: 'MachineSummaryGraph',
align: 'center',
width: 100,
};

headers(CAPI.RANCHER_CLUSTER, [
STATE,
{
Expand Down
2 changes: 1 addition & 1 deletion shell/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const DEFAULT_PERF_SETTING: PerfSettings = {
enableAll: false,
enableSome: {
enabled: [
{ resource: CAPI.RANCHER_CLUSTER, context: ['home', 'side-bar'] },
{ resource: CAPI.RANCHER_CLUSTER, context: ['home', 'side-bar', 'provisioning.cattle.io.clusters'] },
{ resource: MANAGEMENT.CLUSTER, context: ['side-bar'] },
],
generic: false,
Expand Down
Loading

0 comments on commit 46cc4bc

Please sign in to comment.