YARN-7949. [UI2] ArtifactsId should not be a compulsory field for new service. Contributed by Yesha Vora.
This commit is contained in:
parent
cc683952d2
commit
d1cd573687
@ -52,5 +52,5 @@ export default Ember.Component.extend({
|
|||||||
return !Ember.isNone(item);
|
return !Ember.isNone(item);
|
||||||
},
|
},
|
||||||
|
|
||||||
isValidCurrentComponent: Ember.computed.and('currentComponent', 'currentComponent.name', 'currentComponent.cpus', 'currentComponent.memory', 'currentComponent.numOfContainers', 'currentComponent.artifactId', 'currentComponent.launchCommand')
|
isValidCurrentComponent: Ember.computed.and('currentComponent', 'currentComponent.name', 'currentComponent.cpus', 'currentComponent.memory', 'currentComponent.numOfContainers', 'currentComponent.launchCommand')
|
||||||
});
|
});
|
||||||
|
@ -189,10 +189,12 @@ export default DS.Model.extend({
|
|||||||
json['number_of_containers'] = record.get('numOfContainers');
|
json['number_of_containers'] = record.get('numOfContainers');
|
||||||
json['launch_command'] = record.get('launchCommand');
|
json['launch_command'] = record.get('launchCommand');
|
||||||
json['dependencies'] = [];
|
json['dependencies'] = [];
|
||||||
json['artifact'] = {
|
if (!Ember.isEmpty(record.get('artifactId'))) {
|
||||||
id: record.get('artifactId'),
|
json['artifact'] = {
|
||||||
type: record.get('artifactType')
|
id: record.get('artifactId'),
|
||||||
};
|
type: record.get('artifactType')
|
||||||
|
};
|
||||||
|
}
|
||||||
json['resource'] = {
|
json['resource'] = {
|
||||||
cpus: record.get('cpus'),
|
cpus: record.get('cpus'),
|
||||||
memory: record.get('memory')
|
memory: record.get('memory')
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
{{input type="number" min="0" class="form-control" value=currentComponent.numOfContainers}}
|
{{input type="number" min="0" class="form-control" value=currentComponent.numOfContainers}}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="required">Artifact Id</label>
|
<label>Artifact Id</label>
|
||||||
{{input type="text" class="form-control" value=currentComponent.artifactId}}
|
{{input type="text" class="form-control" value=currentComponent.artifactId}}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user