-
Notifications
You must be signed in to change notification settings - Fork 63
feat(vm-creation): Improve shared SGs - Support assigning of many gro… #641
Conversation
…ups during VM creation
<ng-container *ngIf="securityGroups?.length"> | ||
{{ securityGroupsLine }} | ||
</ng-container> | ||
<ng-container *ngIf="!securityGroups?.length"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use else
@Input() public securityGroups: Array<SecurityGroup>; | ||
|
||
public get securityGroupsLine(): string { | ||
if (this.securityGroups) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove condition
} | ||
} | ||
|
||
public checkSelectedSG(securityGroupId: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add return type
@@ -67,6 +69,7 @@ export class VmCreationSecurityGroupComponent implements OnInit { | |||
} | |||
|
|||
public onSave(): void { | |||
console.log('SAVED DATA', this.savedData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log
@@ -60,7 +60,7 @@ export class VmDeploymentService { | |||
|
|||
public deploy(state: VmCreationState): VmDeployObservables { | |||
const deployStatusObservable = new Subject<VmDeploymentMessage>(); | |||
|
|||
console.log('11111 DEPLOY STATE', state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log
@@ -108,7 +108,8 @@ export class VmDeploymentService { | |||
return this.getSecurityGroupCreationObservable(deployObservable, state) | |||
}) | |||
.map(securityGroup => { | |||
state.securityGroupData.securityGroup = securityGroup; | |||
// state.securityGroupData.securityGroups.push(securityGroup); // @todo | |||
console.log('DEPLOYMENT STATE', state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log and comment
@@ -19,7 +19,8 @@ <h4 matLine> | |||
{{ sg.description }} | |||
</p> | |||
<span> | |||
<mat-radio-button [checked]="sg?.id === securityGroup?.id"></mat-radio-button> | |||
<mat-checkbox | |||
[checked]="checkSelectedSG(sg?.id)"></mat-checkbox> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b8ddaa6
to
1e2559d
Compare
…ups during VM creation - fixes
1e2559d
to
316ead9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Selecting security groups changes VM creation data. Cancel button does not work
…ups during VM creation - fixes 2
7e0ed66
to
d6db905
Compare
…ups during VM creation