mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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 class="alert alert-warning w100">
|
||||
<div class="rounded-0 alert alert-warning w100">
|
||||
<div class="container">
|
||||
<span class="font-weight-bold">
|
||||
<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 timeDifference = date.getTime() - new Date().getTime();
|
||||
if (timeDifference > 0) {
|
||||
this.allocateTimeUnits(timeDifference);
|
||||
return interval(1000);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user