diff --git a/assets/translations/en-us.yaml b/assets/translations/en-us.yaml index 33a9797600..c7f00c9cce 100644 --- a/assets/translations/en-us.yaml +++ b/assets/translations/en-us.yaml @@ -75,9 +75,10 @@ nav: title: Dashboard backToRancher: Cluster Manager clusterTools: Cluster Tools - shell: Kubectl Shell + kubeconfig: Download KubeConfig import: Import YAML home: Home + shell: Kubectl Shell support: Get Support group: cluster: Cluster diff --git a/components/nav/Header.vue b/components/nav/Header.vue index 19b5f79078..6fadb42a1a 100644 --- a/components/nav/Header.vue +++ b/components/nav/Header.vue @@ -47,11 +47,15 @@ export default { return this.$store.getters['rancher/byId'](NORMAN.PRINCIPAL, this.$store.getters['auth/principalId']) || {}; }, - showShell() { + kubeConfigEnabled() { + return true; + }, + + shellEnabled() { return !!this.currentCluster?.links?.shell; }, - showImport() { + importEnabled() { return !!this.currentCluster?.actions?.apply; }, @@ -147,36 +151,46 @@ export default {
- - - - +