diff --git a/shell/detail/provisioning.cattle.io.cluster.vue b/shell/detail/provisioning.cattle.io.cluster.vue index 953fa3c9608..c455d66265b 100644 --- a/shell/detail/provisioning.cattle.io.cluster.vue +++ b/shell/detail/provisioning.cattle.io.cluster.vue @@ -1,12 +1,9 @@ @@ -740,13 +577,12 @@ export default { @update:value="$emit('input', $event)" > - - - - {{ t('node.list.noNodes') }} - - - - - - - - {{ t('node.list.noNodes') }} - - - - + + c.id === 'local'); + + return localCluster.length > 0; +} + /** * The vai backed api's `filter` equivalent of `filterOnlyKubernetesClusters` * diff --git a/shell/utils/pagination-utils.ts b/shell/utils/pagination-utils.ts index db40dc104a3..e0465b57c94 100644 --- a/shell/utils/pagination-utils.ts +++ b/shell/utils/pagination-utils.ts @@ -95,15 +95,7 @@ class PaginationUtils { return setting === enabledFor.resource?.id; } - if (setting.resource === enabledFor.resource?.id) { - if (!!setting.context) { - return enabledFor.resource?.context ? setting.context.includes(enabledFor.resource.context) : false; - } - - return true; - } - - return false; + return enabledFor.resource?.context ? setting.context.includes(enabledFor.resource.context) : false; })) { return true; } diff --git a/shell/utils/settings.ts b/shell/utils/settings.ts index 1af7553a724..29208bc142c 100644 --- a/shell/utils/settings.ts +++ b/shell/utils/settings.ts @@ -104,5 +104,11 @@ export const getPerformanceSetting = (rootGetters: Record