From 3ed34d194cb9eaf99f3b356b3ec443a66b0eef50 Mon Sep 17 00:00:00 2001 From: Ivaschenko Christina Date: Wed, 25 Oct 2017 14:26:50 +0700 Subject: [PATCH 1/2] fix(vm-creation): Error in VM creation when affinity group contains commas --- src/app/vm/vm-creation/vm-creation.component.html | 3 ++- src/i18n/en.json | 2 +- src/i18n/ru.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/vm/vm-creation/vm-creation.component.html b/src/app/vm/vm-creation/vm-creation.component.html index dad23fb504..0f89a0f185 100644 --- a/src/app/vm/vm-creation/vm-creation.component.html +++ b/src/app/vm/vm-creation/vm-creation.component.html @@ -153,11 +153,12 @@
{{ 'VM_PAGE.VM_CREATION.GROUP' | translate }}
-
{{ 'VM_PAGE.VM_CREATION.AFFINITY_GROUPS' | translate }}
+
{{ 'VM_PAGE.VM_CREATION.AFFINITY_GROUP' | translate }}
Date: Thu, 26 Oct 2017 13:52:36 +0700 Subject: [PATCH 2/2] fix(vm-creation): Error in VM creation when affinity group contains commas - fixes after code review --- src/app/vm/vm-creation/vm-creation.component.html | 8 ++++++++ src/app/vm/vm-creation/vm-creation.component.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/src/app/vm/vm-creation/vm-creation.component.html b/src/app/vm/vm-creation/vm-creation.component.html index 0f89a0f185..c012786f8b 100644 --- a/src/app/vm/vm-creation/vm-creation.component.html +++ b/src/app/vm/vm-creation/vm-creation.component.html @@ -54,11 +54,15 @@
{{ 'VM_PAGE.VM_CREATION.NAME' | translate }}
(ngModelChange)="displayNameChange($event)" [placeholder]="'VM_PAGE.VM_CREATION.NAME' | translate" pattern="^[a-zA-Z]{1}[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]$" + [maxlength]="maxEntityNameLength" required > {{ 'VM_PAGE.VM_CREATION.THIS_NAME_IS_TAKEN' | translate }} + + +
@@ -161,9 +165,13 @@
{{ 'VM_PAGE.VM_CREATION.AFFINITY_GROUP' | translate }}
pattern="[a-zA-Z]{1}[a-zA-Z0-9\-\_]{0,61}[a-zA-Z0-9]$" [placeholder]="'VM_PAGE.VM_CREATION.NO_GROUP' | translate" [matAutocomplete]="affinityGroups" + [maxlength]="maxEntityNameLength" [(ngModel)]="formState.state.affinityGroup.name" (ngModelChange)="affinityGroupChange($event)" > + + + ; public visibleAffinityGroups: Array;