From 963830b9d1cb341b40c27fd5515fc3b3f7158c24 Mon Sep 17 00:00:00 2001 From: pfh Date: Fri, 15 Jun 2018 11:03:47 +0800 Subject: [PATCH 1/2] Add replication rule label filter --- .../create-edit-rule.component.html | 27 ++- .../create-edit-rule.component.scss | 22 ++ .../create-edit-rule.component.spec.ts | 10 +- .../create-edit-rule.component.ts | 211 +++++++++++++++--- .../filter-label.component.html | 13 ++ .../filter-label.component.scss | 132 +++++++++++ .../filter-label.component.ts | 170 ++++++++++++++ src/ui_ng/lib/src/create-edit-rule/index.ts | 4 +- .../label-piece/label-piece.component.scss | 1 + .../list-replication-rule.component.html | 14 +- .../list-replication-rule.component.ts | 16 ++ .../replication/replication.component.html | 2 +- .../replication/replication.component.spec.ts | 6 +- .../src/replication/replication.component.ts | 1 + src/ui_ng/lib/src/service/label.service.ts | 4 +- src/ui_ng/lib/src/tag/tag.component.ts | 5 + src/ui_ng/package.json | 2 +- .../total-replication-page.component.html | 2 +- .../total-replication-page.component.ts | 6 + src/ui_ng/src/i18n/lang/en-us-lang.json | 6 +- src/ui_ng/src/i18n/lang/es-es-lang.json | 6 +- src/ui_ng/src/i18n/lang/fr-fr-lang.json | 6 +- src/ui_ng/src/i18n/lang/zh-cn-lang.json | 6 +- 23 files changed, 626 insertions(+), 46 deletions(-) create mode 100644 src/ui_ng/lib/src/create-edit-rule/filter-label.component.html create mode 100644 src/ui_ng/lib/src/create-edit-rule/filter-label.component.scss create mode 100644 src/ui_ng/lib/src/create-edit-rule/filter-label.component.ts diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html index 087bf4760..773516dcb 100644 --- a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html +++ b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html @@ -2,6 +2,14 @@