-
Notifications
You must be signed in to change notification settings - Fork 7
RO-3008: legge til info tekster under lista #846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| @let endText = | ||
| maxItemsFetched | ||
| ? "OBSERVATION_LIST.MAX_COUNT_REACHED" | ||
| : registrationsLength && registrationsLength <= registrationsCount | ||
| ? "OBSERVATION_LIST.NO_MORE_OBS_IN_VIEW" | ||
| : ""; | ||
|
|
||
| @if (endText) { | ||
| <span class="list-end-info"> | ||
| <ion-icon name="information-circle-outline"></ion-icon> | ||
| <span>{{ endText | translate }}</span> | ||
| </span> | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| .list-end-info { | ||
| margin-top: 32px; | ||
| display: flex; | ||
| gap: 4px; | ||
| align-items: flex-start; | ||
| align-self: center; | ||
| justify-content: center; | ||
| color: var(--ion-background-color-step-850); | ||
| ion-icon { | ||
| font-size: 1.5rem; | ||
| } | ||
| p { | ||
| margin: 0; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { Component, Input } from '@angular/core'; | ||
| import { IonIcon } from '@ionic/angular/standalone'; | ||
| import { TranslatePipe } from '@ngx-translate/core'; | ||
| import { addIcons } from 'ionicons'; | ||
| import { informationCircleOutline } from 'ionicons/icons'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-list-end-info', | ||
| templateUrl: './list-end-info.component.html', | ||
| styleUrls: ['./list-end-info.component.scss'], | ||
| imports: [IonIcon, TranslatePipe], | ||
| }) | ||
| /** | ||
| * Viser informasjonstekster i bunnen av observasjonslister | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ |
||
| */ | ||
| export class ListEndInfoComponent { | ||
| @Input() maxItemsFetched = false; | ||
| @Input() registrationsLength = 0; | ||
| @Input() registrationsCount = 0; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jeg skjønner ikke forskjell på registrationsLength og registrationsCount. Får du til å bruke variabelnavn som er mer presise eller dokumentere hva som er hva? |
||
| constructor() { | ||
| addIcons({ informationCircleOutline }); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skal vi vise denne når vi laster neste side?
