From 76061e3f76dedd8472102df02b78647a7c959ed7 Mon Sep 17 00:00:00 2001 From: Anna Iosif Date: Wed, 24 Jan 2024 13:59:01 +0100 Subject: [PATCH] 1070 hidden field indicator (#747) * Adding https-icon to svg-library * Adding indicator to private fields --- apps/web-mzima-client/src/app/core/enums/icons.ts | 1 + .../src/app/post/post-edit/post-edit.component.html | 7 +++++++ .../src/app/post/post-edit/post-edit.component.scss | 4 ++++ apps/web-mzima-client/src/assets/icons/https.svg | 10 ++++++++++ 4 files changed, 22 insertions(+) create mode 100644 apps/web-mzima-client/src/assets/icons/https.svg diff --git a/apps/web-mzima-client/src/app/core/enums/icons.ts b/apps/web-mzima-client/src/app/core/enums/icons.ts index e534c0f412..bcaed6f392 100644 --- a/apps/web-mzima-client/src/app/core/enums/icons.ts +++ b/apps/web-mzima-client/src/app/core/enums/icons.ts @@ -74,4 +74,5 @@ export enum Icons { infoCircle = 'info-circle', thumbUp = 'thumb-up', ellipses = 'ellipses', + https = 'https', } diff --git a/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.html b/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.html index 609e8dc25f..16cd3741e8 100644 --- a/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.html +++ b/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.html @@ -70,6 +70,13 @@

{{ task.translations[activeLanguage]?.label || task.label *ngFor="let field of task.fields | sortByField : 'priority' : 'asc'; let i = index" > + {{ field?.translations[activeLanguage]?.label || field?.label }} * diff --git a/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.scss b/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.scss index 30b3551588..b64d8943a7 100644 --- a/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.scss +++ b/apps/web-mzima-client/src/app/post/post-edit/post-edit.component.scss @@ -61,6 +61,10 @@ display: block; margin-bottom: 8px; } + .field__icon { + vertical-align: middle; + display: inline; + } } .tags { diff --git a/apps/web-mzima-client/src/assets/icons/https.svg b/apps/web-mzima-client/src/assets/icons/https.svg new file mode 100644 index 0000000000..584c741935 --- /dev/null +++ b/apps/web-mzima-client/src/assets/icons/https.svg @@ -0,0 +1,10 @@ + + + + + + + + + +