mirror of https://github.com/rancher/ui.git
24 lines
504 B
JavaScript
24 lines
504 B
JavaScript
import Resource from '@rancher/ember-api-store/models/resource';
|
|
|
|
export default Resource.extend({
|
|
type: 'googleKubernetesEngineConfig',
|
|
|
|
reservedKeys: [],
|
|
|
|
validationErrors() {
|
|
let errors = [];
|
|
|
|
if (!this.credential) {
|
|
errors.push('"Service Account" is required');
|
|
} else if (!this.projectId){
|
|
errors.push('"Google Project ID" is required');
|
|
}
|
|
if (errors.length > 0) {
|
|
return errors;
|
|
}
|
|
errors = this._super(...arguments);
|
|
|
|
return errors;
|
|
},
|
|
});
|