mirror of https://github.com/rancher/dashboard.git
18 lines
378 B
JavaScript
18 lines
378 B
JavaScript
import { _VIEW } from '@shell/config/query-params';
|
|
import { set } from '@shell/utils/object';
|
|
import SteveModel from '@shell/plugins/steve/steve-class';
|
|
|
|
export default class ChartInstallAction extends SteveModel {
|
|
showMasthead(mode) {
|
|
return mode === _VIEW;
|
|
}
|
|
|
|
applyDefaults() {
|
|
if ( !this.charts ) {
|
|
set(this, 'charts', [
|
|
{}
|
|
]);
|
|
}
|
|
}
|
|
}
|