mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
97425: Fix countdown timer intial display and remove rounded banner corner
This commit is contained in:
@@ -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 ">
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user