diff --git a/app/components/page-header-project/template.hbs b/app/components/page-header-project/template.hbs index 2b0285917..e034c3246 100644 --- a/app/components/page-header-project/template.hbs +++ b/app/components/page-header-project/template.hbs @@ -1,23 +1,22 @@ {{#hover-dropdown - horizontalPosition="left" - verticalPosition="below" - renderInPlace=true - onOpen=(action "onOpen") - onClose=(action "onClose") - as |dd| + horizontalPosition="left" + verticalPosition="below" + renderInPlace=true + onOpen=(action "onOpen") + onClose=(action "onClose") + as |dd| }} {{#dd.trigger - ariaLabel=(t 'nav.projectDropdown.label') + ariaLabel=(t "nav.projectDropdown.label") }} - + {{#if (eq pageScope "project")}}
{{project.cluster.displayName}}
- {{project.displayName}}
{{else if (eq pageScope "cluster")}} @@ -26,17 +25,15 @@ {{else if (eq pageScope "global")}}
- - {{t 'nav.admin.tab'}} + {{t "nav.admin.tab"}}
{{else}}
- {{pageScope}}
{{/if}} - {{t 'nav.srToggleDropdown'}} + {{t "nav.srToggleDropdown"}}
@@ -44,56 +41,68 @@ {{/dd.trigger}} {{#dd.content - class="project-menu" - style=menuStyle + class="project-menu" + style=menuStyle }}
- + @@ -101,39 +110,48 @@
{{#if (or searchInput (not clusterEntry)) }} - + {{else}} - + {{/if}}
diff --git a/app/components/page-header/template.hbs b/app/components/page-header/template.hbs index f27ccaeba..ede61769b 100644 --- a/app/components/page-header/template.hbs +++ b/app/components/page-header/template.hbs @@ -147,32 +147,28 @@
  • {{#link-to "authenticated.apikeys"}} {{t "nav.api.link"}} - {{/link-to}} + {{/link-to}}
  • {{#link-to "global-admin.security.cloud-credentials"}} {{t "nav.admin.security.cloudCredentials"}} - {{/link-to}}
  • {{#link-to "nodes.node-templates"}} {{t "nav.nodeTemplates.link"}} - {{/link-to}}
  • {{#link-to "authenticated.prefs"}} {{t "nav.userPreferences.link"}} - {{/link-to}}
  • {{#link-to "logout" class="user-logout"}} {{t "nav.user.logout"}} - {{/link-to}}
  • {{/dd.content}} diff --git a/app/instance-initializers/nav.js b/app/instance-initializers/nav.js index 3ec566011..8b0d33cb7 100644 --- a/app/instance-initializers/nav.js +++ b/app/instance-initializers/nav.js @@ -40,7 +40,6 @@ const rootNav = [ { id: 'infra-certificates', localizedLabel: 'nav.infra.certificates', - icon: 'icon icon-certificate', route: 'authenticated.project.certificates', ctx: [getProjectId], resource: ['certificate'], @@ -49,7 +48,6 @@ const rootNav = [ { id: 'infra-config-maps', localizedLabel: 'nav.infra.configMaps', - icon: 'icon icon-file', route: 'authenticated.project.config-maps', ctx: [getProjectId], resource: ['configmap'], @@ -58,7 +56,6 @@ const rootNav = [ { id: 'infra-registries', localizedLabel: 'nav.infra.registries', - icon: 'icon icon-database', route: 'authenticated.project.registries', ctx: [getProjectId], resource: ['dockercredential'], @@ -67,7 +64,6 @@ const rootNav = [ { id: 'infra-secrets', localizedLabel: 'nav.infra.secrets', - icon: 'icon icon-secrets', route: 'authenticated.project.secrets', ctx: [getProjectId], resource: ['namespacedsecret', 'secret'], @@ -88,7 +84,6 @@ const rootNav = [ scope: 'project', id: 'project-security-roles', localizedLabel: 'nav.infra.members', - icon: 'icon icon-users', route: 'authenticated.project.security.members', resource: ['projectroletemplatebinding'], resourceScope: 'global', @@ -111,6 +106,14 @@ const rootNav = [ ctx: [getProjectId], resourceScope: 'global', }, + { + id: 'manage-catalogs', + localizedLabel: 'nav.tools.catalogs', + route: 'authenticated.project.project-catalogs', + ctx: [getProjectId], + resource: ['catalog', 'project-catalog'], + resourceScope: 'global', + }, { id: 'tools-logging', localizedLabel: 'nav.tools.logging', @@ -194,20 +197,10 @@ const rootNav = [ resource: ['project'], resourceScope: 'global', }, - { - scope: 'cluster', - id: 'cluster-catalogs', - localizedLabel: 'nav.admin.catalogs', - route: 'authenticated.cluster.cluster-catalogs', - ctx: [getClusterId], - resource: ['catalog', 'cluster-catalog'], - resourceScope: 'global', - }, { scope: 'cluster', id: 'cluster-security-roles', localizedLabel: 'nav.cluster.members', - icon: 'icon icon-users', route: 'authenticated.cluster.security.members.index', resource: ['clusterroletemplatebinding'], resourceScope: 'global', @@ -225,7 +218,6 @@ const rootNav = [ { id: 'cluster-tools-alert', localizedLabel: 'nav.tools.alerts', - // icon: 'icon icon-key', route: 'authenticated.cluster.alert', resourceScope: 'global', resource: [], @@ -242,6 +234,15 @@ const rootNav = [ return get(this, 'cluster.rancherKubernetesEngineConfig') } }, + { + scope: 'cluster', + id: 'cluster-catalogs', + localizedLabel: 'nav.admin.catalogs', + route: 'authenticated.cluster.cluster-catalogs', + ctx: [getClusterId], + resource: ['catalog', 'cluster-catalog'], + resourceScope: 'global', + }, { id: 'cluster-tools-notifiers', localizedLabel: 'nav.tools.notifiers', @@ -280,18 +281,10 @@ const rootNav = [ }, { scope: 'global', - id: 'nodes-node-drivers', - localizedLabel: 'nav.admin.drivers', - route: 'nodes.custom-drivers', - resource: ['nodedriver', 'kontainerdriver'], - resourceScope: 'global', - }, - { - scope: 'global', - id: 'global-catalogs', - localizedLabel: 'nav.admin.catalogs', - route: 'global-admin.catalog', - resource: ['catalog'], + id: 'multi-cluster-apps', + localizedLabel: 'nav.admin.multiClusterApps', + route: 'global-admin.multi-cluster-apps', + resource: ['multiclusterapp'], resourceScope: 'global', }, { @@ -318,7 +311,6 @@ const rootNav = [ { id: 'global-security-roles', localizedLabel: 'nav.admin.security.roles', - icon: 'icon icon-users', route: 'global-admin.security.roles', resource: ['roletemplate'], resourceScope: 'global', @@ -326,7 +318,6 @@ const rootNav = [ { id: 'global-security-roles', localizedLabel: 'nav.admin.security.podSecurityPolicies', - icon: 'icon icon-files', route: 'global-admin.security.policies', resource: ['podsecuritypolicytemplate'], resourceScope: 'global', @@ -334,7 +325,6 @@ const rootNav = [ { id: 'global-security-authentication', localizedLabel: 'nav.admin.security.authentication', - icon: 'icon icon-users', route: 'global-admin.security.authentication', condition() { const authConfigs = this.get('globalStore').all('authConfig'); @@ -349,11 +339,26 @@ const rootNav = [ id: 'global-tools', localizedLabel: 'nav.tools.tab', submenu: [ + { + scope: 'global', + id: 'global-catalogs', + localizedLabel: 'nav.admin.catalogs', + route: 'global-admin.catalog', + resource: ['catalog'], + resourceScope: 'global', + }, + { + scope: 'global', + id: 'nodes-node-drivers', + localizedLabel: 'nav.admin.drivers', + route: 'nodes.custom-drivers', + resource: ['nodedriver', 'kontainerdriver'], + resourceScope: 'global', + }, { id: 'global-dns-entries', localizedLabel: 'nav.admin.globalDnsEntries', route: 'global-admin.global-dns.entries', - icon: 'icon icon-network', resource: ['globaldns'], resourceScope: 'global', }, @@ -361,19 +366,9 @@ const rootNav = [ id: 'global-dns-providers', localizedLabel: 'nav.admin.globalDnsProviders', route: 'global-admin.global-dns.providers', - icon: 'icon icon-globe', resource: ['globaldnsprovider'], resourceScope: 'global', }, - { - scope: 'global', - id: 'multi-cluster-apps', - localizedLabel: 'nav.admin.multiClusterApps', - route: 'global-admin.multi-cluster-apps', - icon: 'icon icon-catalog', - resource: ['multiclusterapp'], - resourceScope: 'global', - }, ], }, // { diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 0f571a411..45bf11c0b 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -7011,8 +7011,8 @@ nav: library: Library community: Community apps: - tab: Catalog Apps - apps: Catalog Apps + tab: Apps + apps: Apps launch: Launch manage: Manage Catalogs infra: @@ -7033,7 +7033,7 @@ nav: globalDns: Global DNS globalDnsEntries: Global DNS Entries globalDnsProviders: Global DNS Providers - multiClusterApps: Multi-Cluster Apps + multiClusterApps: Apps security: cloudCredentials: Cloud Credentials tab: Security @@ -7061,6 +7061,7 @@ nav: tools: alerts: Alerts backups: Snapshots + catalogs: Catalogs logging: Logging monitoring: Monitoring notifiers: Notifiers