diff --git a/ui/app/routes/vault/cluster.js b/ui/app/routes/vault/cluster.js index 9b86deb70831..433c7f701dc1 100644 --- a/ui/app/routes/vault/cluster.js +++ b/ui/app/routes/vault/cluster.js @@ -6,6 +6,7 @@ const POLL_INTERVAL_MS = 10000; const { inject } = Ember; export default Ember.Route.extend(ModelBoundaryRoute, ClusterRoute, { + version: inject.service(), store: inject.service(), auth: inject.service(), currentCluster: Ember.inject.service(), @@ -21,7 +22,8 @@ export default Ember.Route.extend(ModelBoundaryRoute, ClusterRoute, { const params = this.paramsFor(this.routeName); const id = this.getClusterId(params); if (id) { - return this.get('auth').setCluster(id); + this.get('auth').setCluster(id); + return this.get('version').fetchFeatures(); } else { return Ember.RSVP.reject({ httpStatus: 404, message: 'not found', path: params.cluster_name }); } @@ -29,7 +31,8 @@ export default Ember.Route.extend(ModelBoundaryRoute, ClusterRoute, { model(params) { const id = this.getClusterId(params); - return this.get('store').findRecord('cluster', id); + + return this.get('store').findRecord('cluster', id); }, stopPoll: Ember.on('deactivate', function() { diff --git a/ui/app/services/version.js b/ui/app/services/version.js index 4284c44fd71c..8b07823051a9 100644 --- a/ui/app/services/version.js +++ b/ui/app/services/version.js @@ -24,7 +24,7 @@ export default Service.extend({ hasSentinel: hasFeature('Sentinel'), - isEnterprise: computed.match('version', /\+\w+$/), + isEnterprise: computed.match('version', /\+.+$/), isOSS: computed.not('isEnterprise'), diff --git a/ui/app/styles/components/status-menu.scss b/ui/app/styles/components/status-menu.scss index 5f841db15484..1c6937dae0f7 100644 --- a/ui/app/styles/components/status-menu.scss +++ b/ui/app/styles/components/status-menu.scss @@ -91,9 +91,16 @@ width: 100%; text-align: left; + .icon { + color: $menu-item-hover-background-color; + } &:hover { background-color: $menu-item-hover-background-color; color: $menu-item-hover-color; + .icon { + color: $menu-item-hover-color; + } + } &.is-active { diff --git a/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs b/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs index db4d76dc12db..475a01fce606 100644 --- a/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs +++ b/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs @@ -1,38 +1,40 @@ -
- Upgrade to Vault Enterprise Premium to use Performance Replication. -
- {{else if replicationEnabled}} - - {{capitalize modeForUrl}} - - {{#if secondaryId}} ++ Upgrade to Vault Enterprise Premium to use Performance Replication. +
+ {{else if replicationEnabled}} + + {{capitalize modeForUrl}} + + {{#if secondaryId}} + +
+ {{secondaryId}}
+
+
+ {{/if}}
- {{secondaryId}}
+ {{clusterIdDisplay}}
+ {{else}}
+ Enable
{{/if}}
-
-
- {{clusterIdDisplay}}
-
-
- {{else}}
- Enable
- {{/if}}
+