mirror of https://github.com/rancher/ui.git
20 lines
452 B
JavaScript
20 lines
452 B
JavaScript
import Component from '@ember/component';
|
|
import { get, set } from '@ember/object';
|
|
import { inject as service } from '@ember/service';
|
|
import layout from './template';
|
|
|
|
export default Component.extend({
|
|
layout,
|
|
|
|
globalStore: service(),
|
|
|
|
showAuthHeader: false,
|
|
|
|
init() {
|
|
this._super(...arguments);
|
|
|
|
const authConfigs = get(this, 'globalStore').all('authConfig');
|
|
set(this, 'showAuthHeader', authConfigs.get('length') > 0);
|
|
},
|
|
});
|