Skip to content

Commit

Permalink
Update notification banner for Sept v10 launch
Browse files Browse the repository at this point in the history
  • Loading branch information
emdecr committed Sep 17, 2024
1 parent 934d659 commit f309efe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/_static/js/myscript-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $(document).ready(function () {
// Fallback for when a notification CTA expires - ie. webinar happens
const dateInFuture = (value) =>
new Date().getTime() <= new Date(value).getTime();
const expiryDate = '2024-09-10T00:00:00-0500';
const expiryDate = '2024-11-10T00:00:00-0500';
// 2024-09-10 @ 12am EST
const fallback_url =
'https://mattermost.com/solutions/mattermost-for-microsoft-teams/';
Expand All @@ -85,7 +85,7 @@ $(document).ready(function () {
// So it will show up for new announcements
// Keep "mm_notification_banner__" at the beginning of the key
// Add system to clean out storage items that are no longer needed
let notification_banner_key = 'mm_notification_banner__ed-survey-announcement';
let notification_banner_key = 'mm_notification_banner__v10-mst';
if (!dateInFuture(expiryDate)) {
notification_banner_key = 'mm_notification_banner__fallback-mst';
}
Expand Down
2 changes: 1 addition & 1 deletion source/_templates/custom-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<span aria-hidden="true">×</span>
</a>
<div class="notification-bar__wrapper">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfWe9qqwYGdTYBsuXFjBloASNNwI8WwInpV-ycflIA4J7zIUg/viewform?usp=sf_link" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Share your thoughts on Mattermost product training and documentation »</a>
<a href="https://mattermost.com/blog/microsoft-teams-m365-mission-critical-workflows/" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v10.0 is now available! Learn what's new »</a>
</div>
</div>
</div>
Expand Down

0 comments on commit f309efe

Please sign in to comment.