From 60f83843e306e9572cf6a7a35761fbcc6d52eb7d Mon Sep 17 00:00:00 2001 From: Mia ZHOU Date: Wed, 25 Jul 2018 15:05:14 +0800 Subject: [PATCH] Fix configuration->label->new sometimes not enable. Problem description: 1 label enable sometimes not correct. User input good label names, submit button still disabled. 2 Some times click submit, not working. Fix: 1 After review the new label code. It trying to use a global variable to control the progress of validation. In the progress of validation, it will disabled the submit button. This will cause user bad experience. Just remove this logic. 2 Backend use fuzzy matching, the frontend logic did not change before. So when user already have a user name called "abcd",and then input another name called "abc" it will report duplicated name error. This logic still need change. 3 This is the first version of refine. Can be refine again if find some other logic not correct. --- .../create-edit-label.component.html | 2 +- .../create-edit-label.component.scss | 122 ++++++++---------- .../create-edit-label.component.ts | 24 ++-- .../repository-gridview.component.html | 2 +- 4 files changed, 68 insertions(+), 82 deletions(-) diff --git a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html index 4cee09078..7596d4a64 100644 --- a/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html +++ b/src/ui_ng/lib/src/create-edit-label/create-edit-label.component.html @@ -16,7 +16,7 @@