This is an automated email from the ASF dual-hosted git repository.
dgnatyshyn pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new 4ceaeea [DLAB-1486]: Fixed Dataproc creating (#568)
4ceaeea is described below
commit 4ceaeea955be398bd695ea8a9e9f9b583794ad45
Author: Dmytro Gnatyshyn <[email protected]>
AuthorDate: Wed Jan 29 18:23:04 2020 +0200
[DLAB-1486]: Fixed Dataproc creating (#568)
[DLAB-1486]: Fixed Dataproc creating
---
...mputational-resource-create-dialog.component.ts | 18 ++--------------
.../create-environment.component.html | 2 +-
.../resources/webapp/src/assets/styles/_theme.scss | 25 +++++++++++++++++-----
3 files changed, 23 insertions(+), 22 deletions(-)
diff --git
a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
index 28f01cd..29ef7d4 100644
---
a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
+++
b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
@@ -76,7 +76,6 @@ export class ComputationalResourceCreateDialogComponent
implements OnInit {
this.notebook_instance = this.data.notebook;
this.resourcesList = this.data.full_list;
this.initFormModel();
- this.initCluster();
this.getTemplates(this.notebook_instance.project,
this.notebook_instance.endpoint);
}
@@ -139,9 +138,9 @@ export class ComputationalResourceCreateDialogComponent
implements OnInit {
private initFormModel(): void {
this.resourceForm = this._fb.group({
template_name: ['', [Validators.required]],
- version: ['', Validators.required],
+ version: [''],
shape_master: ['', Validators.required],
- shape_slave: ['', Validators.required],
+ shape_slave: [''],
cluster_alias_name: ['', [Validators.required,
Validators.pattern(PATTERNS.namePattern),
Validators.maxLength(DICTIONARY[this.PROVIDER].max_cluster_name_length),
this.checkDuplication.bind(this)]],
instance_number: ['', [Validators.required,
Validators.pattern(PATTERNS.nodeCountPattern),
this.validInstanceNumberRange.bind(this)]],
@@ -154,19 +153,6 @@ export class ComputationalResourceCreateDialogComponent
implements OnInit {
});
}
- private initCluster() {
- this.resourceForm.get('template_name').valueChanges.subscribe(val => {
- if (val === 'AWS EMR cluster') {
- this.resourceForm.addControl('shape_slave', new FormControl('', [
Validators.required ]));
- this.resourceForm.addControl('version', new FormControl('', [
Validators.required ]));
- } else {
- this.resourceForm.removeControl('shape_slave');
- this.resourceForm.removeControl('version');
- }
- this.resourceForm.updateValueAndValidity();
- });
- }
-
private shapePlaceholder(resourceShapes, byField: string) {
for (const index in resourceShapes) return
resourceShapes[index][0][byField];
}
diff --git
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
index a598cec..c195189 100644
---
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
+++
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
@@ -66,7 +66,7 @@
<div class="control selector-wrapper" [ngClass]="{ 'not-active' :
!templates.length }">
<mat-form-field>
<mat-select formControlName="version" disableOptionCentering
[disabled]="!templates.length"
- panelClass="create-resources-dialog" placeholder="Select
endpoint">
+ panelClass="create-resources-dialog" placeholder="Select
template">
<mat-option *ngFor="let template of templates"
[value]="template.exploratory_environment_versions[0].version"
(click)="getShapes(template)">
{{
template.exploratory_environment_versions[0].template_name }}
diff --git
a/services/self-service/src/main/resources/webapp/src/assets/styles/_theme.scss
b/services/self-service/src/main/resources/webapp/src/assets/styles/_theme.scss
index bb8ad38..7ac6252 100644
---
a/services/self-service/src/main/resources/webapp/src/assets/styles/_theme.scss
+++
b/services/self-service/src/main/resources/webapp/src/assets/styles/_theme.scss
@@ -300,24 +300,39 @@ span.mat-slide-toggle-content {
}
.project-form,
-.create-environment,
-.create-cluster{
+.create-environment{
.ng-invalid{
.mat-form-field-label {
line-height: 22px !important;
font-size: 15px !important;
}
+ .ng-valid .mat-form-field-label {
+ color: transparent !important;
+ }
}
+}
+
+
+.project-form,
+.create-environment,
+.create-cluster{
- .ng-valid .mat-form-field-label {
- color: transparent !important;
- }
.mat-select-value{
overflow: visible;
}
}
+.create-cluster {
+ .ng-invalid {
+ .mat-form-field-label {
+ padding-top: 5px;
+ line-height: 16px !important;
+ font-size: 15px !important;
+ }
+ }
+}
+
.manage-roles,
.project-form,
.selection {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]