-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add info banner for maintenance
- start and end date currently hardcoded
- Loading branch information
1 parent
f4dd928
commit dd8cefe
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
<script> | ||
export default { | ||
name: 'InfoBanner', | ||
created() { | ||
const now = Date.now() | ||
const bannerStart = Date.parse('2024-06-24T14:52:00') | ||
const bannerEnd = Date.parse('2024-06-29T00:00:00') | ||
const bannerText = 'Due to Server Maintenance on June 24th at 17:00 CET there might be some network disruptions that restrict functionality.<br>On Friday, June 28th at 8:30 CET for 6-24h this application won\'t be working properly due to unavailable geocoding.' | ||
if (bannerStart < now && now < bannerEnd) { | ||
this.showError(bannerText, {timeout: 0, y: 'top', x: 'no'}) | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters