97425: Fix countdown timer intial display and remove rounded banner corner

This commit is contained in:
Yana De Pauw
2022-12-23 12:15:35 +01:00
parent 37ec888b0a
commit b6218494e5
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<div *ngIf="(systemWideAlert$ |async)?.active"> <div *ngIf="(systemWideAlert$ |async)?.active">
<div class="alert alert-warning w100"> <div class="rounded-0 alert alert-warning w100">
<div class="container"> <div class="container">
<span class="font-weight-bold"> <span class="font-weight-bold">
<span *ngIf="(countDownDays|async) > 0 || (countDownHours| async) > 0 || (countDownMinutes|async) > 0 "> <span *ngIf="(countDownDays|async) > 0 || (countDownHours| async) > 0 || (countDownMinutes|async) > 0 ">

View File

@@ -64,6 +64,7 @@ export class SystemWideAlertBannerComponent implements OnInit, OnDestroy {
const date = zonedTimeToUtc(alert.countdownTo, 'UTC'); const date = zonedTimeToUtc(alert.countdownTo, 'UTC');
const timeDifference = date.getTime() - new Date().getTime(); const timeDifference = date.getTime() - new Date().getTime();
if (timeDifference > 0) { if (timeDifference > 0) {
this.allocateTimeUnits(timeDifference);
return interval(1000); return interval(1000);
} }
} }