Skip to content

Commit

Permalink
Hide Certificates table if vai is enabled
Browse files Browse the repository at this point in the history
- table uses a fitler which isn't compatible with new api so errors
  • Loading branch information
richard-cox committed Jul 25, 2024
1 parent e108b95 commit 8bb2a44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/pages/c/_cluster/explorer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { NAME as EXPLORER } from '@shell/config/product/explorer';
import TabTitle from '@shell/components/TabTitle';
import { STATES_ENUM } from '@shell/plugins/dashboard-store/resource-class';
import capitalize from 'lodash/capitalize';
import paginationUtils from '@shell/utils/pagination-utils';
export const RESOURCES = [NAMESPACE, INGRESS, PV, WORKLOAD_TYPES.DEPLOYMENT, WORKLOAD_TYPES.STATEFUL_SET, WORKLOAD_TYPES.JOB, WORKLOAD_TYPES.DAEMON_SET, SERVICE];
Expand Down Expand Up @@ -122,6 +123,8 @@ export default {
this.loadAgents();
}
}
this.showCertificates = !paginationUtils.isSteveCacheEnabled({ rootGetters: this.$store.getters });
},
data() {
Expand Down Expand Up @@ -156,6 +159,7 @@ export default {
clusterCounts,
selectedTab: 'cluster-events',
extensionCards: getApplicableExtensionEnhancements(this, ExtensionPoint.CARD, CardLocation.CLUSTER_DASHBOARD_CARD, this.$route),
showCertificates: false,
};
},
Expand Down Expand Up @@ -739,6 +743,7 @@ export default {
<AlertTable v-if="selectedTab === 'cluster-alerts'" />
</Tab>
<Tab
v-if="showCertificates"
name="cluster-certs"
:label="t('clusterIndexPage.sections.certs.label')"
:weight="1"
Expand Down

0 comments on commit 8bb2a44

Please sign in to comment.