2018-09-25 16:28:26 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2021-05-27 16:52:51 +00:00
|
|
|
import { alias } from '@ember/object/computed';
|
2018-09-25 16:28:26 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
export default Component.extend({
|
|
|
|
currentCluster: service('current-cluster'),
|
|
|
|
cluster: alias('currentCluster.cluster'),
|
|
|
|
auth: service(),
|
2018-10-21 19:19:34 +00:00
|
|
|
media: service(),
|
2018-04-03 14:16:57 +00:00
|
|
|
type: 'cluster',
|
2018-06-26 21:35:47 +00:00
|
|
|
itemTag: null,
|
2021-12-17 03:44:29 +00:00
|
|
|
glyphName: computed('type', function () {
|
2021-12-07 17:05:14 +00:00
|
|
|
return {
|
|
|
|
cluster: 'circle-dot',
|
|
|
|
user: 'user',
|
|
|
|
}[this.type];
|
2018-10-21 19:19:34 +00:00
|
|
|
}),
|
2018-04-03 14:16:57 +00:00
|
|
|
});
|