From 91760aeefdc7f66441257378c2ca6c46d1ef1640 Mon Sep 17 00:00:00 2001 From: mbayopanda Date: Wed, 5 Aug 2020 10:10:17 +0100 Subject: [PATCH] refactor tag modal for creation and update --- client/src/i18n/en/tag.json | 1 + client/src/i18n/fr/tag.json | 1 + .../components/bhTagSelect/bhTagSelect.html | 6 ++-- .../js/components/bhTagSelect/bhTagSelect.js | 12 ++++++-- client/src/js/services/TagService.js | 22 --------------- client/src/modules/tags/modal/createUpdate.js | 4 +-- client/src/modules/tags/tags.ctrl.js | 10 ++----- client/src/modules/tags/tags.service.js | 28 +++++++++++++++---- 8 files changed, 41 insertions(+), 43 deletions(-) delete mode 100644 client/src/js/services/TagService.js diff --git a/client/src/i18n/en/tag.json b/client/src/i18n/en/tag.json index a3b9f79608..f0e478815c 100644 --- a/client/src/i18n/en/tag.json +++ b/client/src/i18n/en/tag.json @@ -2,6 +2,7 @@ "TAG":{ "TITLE":"Tag", "LABEL":"Tag", + "TAGS":"Tags", "ADD":"Add Tag", "EDIT":"Edit Tag", "DELETE":"Delete Tag", diff --git a/client/src/i18n/fr/tag.json b/client/src/i18n/fr/tag.json index 51310892bf..7d783f99bc 100644 --- a/client/src/i18n/fr/tag.json +++ b/client/src/i18n/fr/tag.json @@ -2,6 +2,7 @@ "TAG":{ "TITLE":"Etiquette", "LABEL":"Etiquette", + "TAGS":"Etiquettes", "ADD":"Ajouter étiquette", "EDIT":"Editer étiquette", "DELETE":"Supprimer étiquette", diff --git a/client/src/js/components/bhTagSelect/bhTagSelect.html b/client/src/js/components/bhTagSelect/bhTagSelect.html index 5d41de346a..d270d66451 100644 --- a/client/src/js/components/bhTagSelect/bhTagSelect.html +++ b/client/src/js/components/bhTagSelect/bhTagSelect.html @@ -3,11 +3,13 @@ class="form-group" ng-class="{ 'has-error' : TagForm.$submitted && TagForm.tagUuids.$invalid }"> -