Skip to content

Commit

Permalink
1070 hidden field indicator (#747)
Browse files Browse the repository at this point in the history
* Adding https-icon to svg-library

* Adding indicator to private fields
  • Loading branch information
Angamanga authored and tuxpiper committed Jan 24, 2024
1 parent 27b19fd commit 76061e3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web-mzima-client/src/app/core/enums/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ export enum Icons {
infoCircle = 'info-circle',
thumbUp = 'thumb-up',
ellipses = 'ellipses',
https = 'https',
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ <h2 class="task-label">{{ task.translations[activeLanguage]?.label || task.label
*ngFor="let field of task.fields | sortByField : 'priority' : 'asc'; let i = index"
>
<mat-label>
<mat-icon
aria-label="Field responses will be private"
*ngIf="field.response_private"
icon
svgIcon="https"
class="field__icon"
></mat-icon>
{{ field?.translations[activeLanguage]?.label || field?.label }}
<span class="color-accent" *ngIf="field?.required">*</span>
</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
display: block;
margin-bottom: 8px;
}
.field__icon {
vertical-align: middle;
display: inline;
}
}

.tags {
Expand Down
10 changes: 10 additions & 0 deletions apps/web-mzima-client/src/assets/icons/https.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 76061e3

Please sign in to comment.