open-vault/ui/app/components/status-menu.js
Matthew Irish d93c92e4f5
UI - guard page redesign (#4779)
* add NavHeader component
* use NavHeader in SplashPage component and application.hbs
* let download button take a block
* add RadialProgress component
* use RadialProgress in ShamirFlow component
* style up the RadialProgress component
* update ember-basic-dropdown, ember-basic-dropdown-hover
* rework operation token generation workflow
* directly depend on ember-maybe-in-element
2018-06-26 16:35:47 -05:00

25 lines
688 B
JavaScript

import Ember from 'ember';
const { inject, computed } = Ember;
export default Ember.Component.extend({
currentCluster: inject.service('current-cluster'),
cluster: computed.alias('currentCluster.cluster'),
auth: inject.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}`;
}),
glyphName: computed('type', function() {
const glyphs = {
cluster: 'unlocked',
user: 'android-person',
'replication-status': 'replication',
};
return glyphs[this.get('type')];
}),
});