Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

feat(vm-creation): Improve shared SGs - Support assigning of many gro… #641

Merged
merged 3 commits into from
Nov 3, 2017

Conversation

HeyRoach
Copy link
Contributor

…ups during VM creation

<ng-container *ngIf="securityGroups?.length">
{{ securityGroupsLine }}
</ng-container>
<ng-container *ngIf="!securityGroups?.length">
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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);
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg-vm1
Sometimes it happens (item is selected but checkbox is not checked)

@HeyRoach HeyRoach force-pushed the 591-improve-shared-sg-in-vm-creation branch from b8ddaa6 to 1e2559d Compare October 31, 2017 07:30
@HeyRoach HeyRoach force-pushed the 591-improve-shared-sg-in-vm-creation branch from 1e2559d to 316ead9 Compare October 31, 2017 07:32
Copy link
Contributor

@zolotyx zolotyx left a 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

@HeyRoach HeyRoach force-pushed the 591-improve-shared-sg-in-vm-creation branch from 7e0ed66 to d6db905 Compare November 1, 2017 04:47
@HeyRoach HeyRoach merged commit a139904 into master Nov 3, 2017
@dariashka dariashka deleted the 591-improve-shared-sg-in-vm-creation branch November 28, 2017 08:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants