mirror of https://github.com/rancher/ui.git
19 lines
514 B
JavaScript
19 lines
514 B
JavaScript
import Ember from 'ember';
|
|
import C from 'ui/utils/constants';
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: ['articles'],
|
|
|
|
actions: {
|
|
hideAccessWarning: function() {
|
|
this.set('prefs.'+C.ACCESS_WARNING, false);
|
|
}
|
|
},
|
|
|
|
showAccessWarning: function() {
|
|
return this.get('app.showArticles') !== false &&
|
|
!this.get('app.authenticationEnabled') &&
|
|
this.get('prefs.'+C.ACCESS_WARNING) !== false;
|
|
}.property('app.authenticationEnabled','prefs.'+C.ACCESS_WARNING)
|
|
});
|