From d2192f2be0279d70c4ee400879fa7d7b6646f934 Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Mon, 13 Apr 2020 16:31:09 +0300 Subject: [PATCH] Improve external's dataset styling --- .../dataset-external-references-editor.component.html | 4 ++-- .../dataset-external-references-editor.component.ts | 4 ++++ dmp-frontend/src/assets/i18n/en.json | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.html b/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.html index 9905ea9b4..24da860a1 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.html +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.html @@ -39,8 +39,8 @@
-
diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.ts b/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.ts index 5859d6d2b..50c4af5f2 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.ts +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/external-references/dataset-external-references-editor.component.ts @@ -102,7 +102,11 @@ export class DatasetExternalReferencesEditorComponent extends BaseComponent impl this.externalSourcesConfiguration.externalDatasets.push({ key: '', label: 'All' }); this.externalSourcesConfiguration.registries.push({ key: '', label: 'All' }); this.externalSourcesConfiguration.services.push({ key: '', label: 'All' }); + if (!isNullOrUndefined(this.externalSourcesConfiguration.tags)) { this.externalSourcesConfiguration.tags.push({ key: '', label: 'All' }); + } else { + this.externalSourcesConfiguration.tags = [{ key: '', label: 'All' }]; + } }); } diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index d11e07c5b..d357a19b0 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -829,7 +829,8 @@ "ACTIONS": { "SAVE": "Save", "CANCEL": "Cancel", - "DELETE": "Delete" + "DELETE": "Delete", + "UPDATE": "Update" }, "VERSION-DIALOG": { "ABOUT": "Versioning is automated.",