-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "slow loading" banner if SITE_SLOW environment variable is set.
- Loading branch information
1 parent
9057d39
commit 7f6cdcc
Showing
2 changed files
with
22 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 |
---|---|---|
|
@@ -23,6 +23,26 @@ | |
</div> | ||
<div v-else class="px-5-touch"> | ||
<client-only> | ||
<div v-if="slow"> | ||
<div class="container mt-5"> | ||
<b-message | ||
title="Northern Climate Reports is experiencing slow load times" | ||
type="is-warning" | ||
aria-close-label="Close message" | ||
> | ||
<p> | ||
We’re sorry! Northern Climate Reports is experiencing slower | ||
load times than usual. We’re working to improve performance | ||
as soon as possible, but we don’t have an estimated time for | ||
completion. Please check back soon, or reach out to us at | ||
<a href="mailto:[email protected]" | ||
>[email protected]</a | ||
> | ||
with questions. | ||
</p> | ||
</b-message> | ||
</div> | ||
</div> | ||
<div v-show="!this.reportIsVisible"> | ||
<div class="container mt-5"> | ||
<div class="columns" id="controls"> | ||
|
@@ -77,6 +97,7 @@ export default { | |
data() { | ||
return { | ||
offline: process.env.offline, | ||
slow: process.env.slow, | ||
} | ||
}, | ||
computed: { | ||
|
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