f2552b708b
* Update cluster status partial to component * Added changelog * Close menu when link is clicked * Upgraded to glimmer components * Fixed indentations Added back activeCluster Updated changelog
21 lines
565 B
JavaScript
21 lines
565 B
JavaScript
import { inject as service } from '@ember/service';
|
|
import { alias } from '@ember/object/computed';
|
|
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
currentCluster: service('current-cluster'),
|
|
cluster: alias('currentCluster.cluster'),
|
|
auth: service(),
|
|
media: service(),
|
|
type: 'cluster',
|
|
itemTag: null,
|
|
glyphName: computed('type', function() {
|
|
const glyphs = {
|
|
cluster: 'status-indicator',
|
|
user: 'user-square-outline',
|
|
};
|
|
return glyphs[this.type];
|
|
}),
|
|
});
|