mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
UI - New navbar and mount icons everywhere (#778)
New look for the navbar and new functionality on mobile. Also includes new look for the mounts list and headers in secret engines.
This commit is contained in:
@@ -7,19 +7,24 @@ export default Component.extend({
|
||||
currentCluster: service('current-cluster'),
|
||||
cluster: alias('currentCluster.cluster'),
|
||||
auth: service(),
|
||||
store: service(),
|
||||
media: service(),
|
||||
type: 'cluster',
|
||||
itemTag: null,
|
||||
partialName: computed('type', function() {
|
||||
let type = this.get('type');
|
||||
let partial = type === 'replication-status' ? 'replication' : type;
|
||||
return `partials/status/${partial}`;
|
||||
return `partials/status/${this.type}`;
|
||||
}),
|
||||
glyphName: computed('type', function() {
|
||||
const glyphs = {
|
||||
cluster: 'unlocked',
|
||||
user: 'android-person',
|
||||
'replication-status': 'replication',
|
||||
cluster: 'status-indicator',
|
||||
user: 'person',
|
||||
};
|
||||
return glyphs[this.get('type')];
|
||||
return glyphs[this.type];
|
||||
}),
|
||||
activeCluster: computed('auth.activeCluster', function() {
|
||||
return this.get('store').peekRecord('cluster', this.get('auth.activeCluster'));
|
||||
}),
|
||||
currentToken: computed('auth.currentToken', function() {
|
||||
return this.get('auth.currentToken');
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user