+
+
+
+
+
+
Service Announcement
+
+ Changes were made to mqtt.meshtastic.org. Uplink your nodes to to continue showing on this map.
+
+
+
+
+
+
+
+
@@ -1828,6 +1852,8 @@
data() {
return {
+ isShowingAnnouncement: this.shouldShowAnnouncement(),
+
configNodesMaxAgeInSeconds: window.getConfigNodesMaxAgeInSeconds(),
configNodesOfflineAgeInSeconds: window.getConfigNodesOfflineAgeInSeconds(),
configWaypointsMaxAgeInSeconds: window.getConfigWaypointsMaxAgeInSeconds(),
@@ -1911,6 +1937,18 @@
},
methods: {
+ getAnnouncementId: function() {
+ // change this when making a new announcement
+ return "1";
+ },
+ shouldShowAnnouncement: function() {
+ const lastSeenAnnouncementId = window.localStorage.getItem("last-seen-announcement-id");
+ return lastSeenAnnouncementId?.toString() !== this.getAnnouncementId();
+ },
+ dismissAnnouncement: function() {
+ window.localStorage.setItem("last-seen-announcement-id", this.getAnnouncementId());
+ this.isShowingAnnouncement = false;
+ },
shouldShowInfoModal: function() {
return !window.getConfigHasSeenInfoModal()
&& !window.isMobile();