diff --git a/frontend/app/src/app/modules/profile/id-card.component.ts b/frontend/app/src/app/modules/profile/id-card.component.ts index f8c7a014..fba215d3 100644 --- a/frontend/app/src/app/modules/profile/id-card.component.ts +++ b/frontend/app/src/app/modules/profile/id-card.component.ts @@ -1,9 +1,6 @@ import {ChangeDetectionStrategy, Component, ElementRef, Input, inject} from '@angular/core'; import {SCIdCard} from '@openstapps/core'; import {ThingTranslateModule} from '../../translation/thing-translate.module'; -import {AsyncPipe, TitleCasePipe} from '@angular/common'; -import {IntervalIsNowPipe, ToDateIntervalPipe} from '../../util/in-range.pipe'; -import {TranslateModule} from '@ngx-translate/core'; import {AnimationController, ModalController} from '@ionic/angular/standalone'; import {ScreenBrightness} from '@capacitor-community/screen-brightness'; import {ScreenOrientation} from '@capacitor/screen-orientation'; @@ -15,14 +12,7 @@ import {iosDuration, iosEasing, mdDuration, mdEasing} from 'src/app/animation/ea templateUrl: 'id-card.html', styleUrls: ['id-card.scss'], changeDetection: ChangeDetectionStrategy.OnPush, - imports: [ - ThingTranslateModule, - IntervalIsNowPipe, - ToDateIntervalPipe, - AsyncPipe, - TranslateModule, - TitleCasePipe, - ], + imports: [ThingTranslateModule], }) export class IdCardComponent { private modalController = inject(ModalController); diff --git a/frontend/app/src/app/modules/profile/id-card.html b/frontend/app/src/app/modules/profile/id-card.html index 573ab799..4d293bf1 100644 --- a/frontend/app/src/app/modules/profile/id-card.html +++ b/frontend/app/src/app/modules/profile/id-card.html @@ -4,6 +4,3 @@ draggable="false" (click)="presentFullscreen()" /> -@if (item.validity && (item.validity | rangeToDateInterval | dfnsIntervalIsNow | async) === false) { -
{{ 'profile.userInfo.expired' | translate | titlecase }}
-} diff --git a/frontend/app/src/app/modules/profile/id-card.scss b/frontend/app/src/app/modules/profile/id-card.scss index 72c88b21..974d7588 100644 --- a/frontend/app/src/app/modules/profile/id-card.scss +++ b/frontend/app/src/app/modules/profile/id-card.scss @@ -6,24 +6,3 @@ img { border-radius: 3mm; } - -.expired { - position: absolute; - top: 48px; - left: 48px; - transform-origin: center; - translate: -50% -50%; - rotate: -45deg; - - display: flex; - align-items: center; - justify-content: center; - - width: 256px; - padding: var(--spacing-xs); - - font-weight: bold; - color: var(--ion-color-danger-contrast); - - background: var(--ion-color-danger); -} diff --git a/frontend/app/src/assets/i18n/de.json b/frontend/app/src/assets/i18n/de.json index 6caa892e..53f84ef8 100644 --- a/frontend/app/src/assets/i18n/de.json +++ b/frontend/app/src/assets/i18n/de.json @@ -405,7 +405,6 @@ } }, "userInfo": { - "expired": "Abgelaufen", "studentId": "Matrikelnr.", "username": "Nutzername", "email": "Email", diff --git a/frontend/app/src/assets/i18n/en.json b/frontend/app/src/assets/i18n/en.json index 955e27c0..38865f1d 100644 --- a/frontend/app/src/assets/i18n/en.json +++ b/frontend/app/src/assets/i18n/en.json @@ -405,7 +405,6 @@ } }, "userInfo": { - "expired": "expired", "studentId": "Matriculation Nr.", "username": "Username", "email": "Email",