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:
Matthew Irish
2018-10-21 14:19:34 -05:00
committed by GitHub
parent f32e2694c7
commit 7e339b117c
88 changed files with 1676 additions and 662 deletions

View File

@@ -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');
}),
});