Skip to content

Commit

Permalink
removed offline fetch notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratatinator97 committed Jun 11, 2024
1 parent 2227758 commit 73c2c05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
7 changes: 0 additions & 7 deletions components/navigation/pictalk-navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ export default {
}
};
}
if (window.navigator.onLine) {
try {
await this.$store.dispatch("getNotifications");
} catch (err) { }
}
this.intervalId = setInterval(async () => {
if (window.navigator.onLine) {
try {
Expand All @@ -221,9 +216,7 @@ export default {
},
async fetch() {
if (process.client) {
console.log(this.notifications)
this.notifications = await this.$store.dispatch("getNotifications");
console.log(this.notifications)
}
},
data() {
Expand Down
10 changes: 1 addition & 9 deletions pages/pictalk/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,7 @@ export default {
const collection = await this.$store.dispatch("fetchCollection", collectionId);
return collection;
} catch (error) {
const notif = this.$buefy.notification.open({
duration: 4500,
message: this.$t("LostConnectivity"),
position: "is-top-right",
type: "is-danger",
hasIcon: true,
iconSize: "is-small",
icon: "airplane",
});
console.log("error ", error);
}
},
async refreshPictos() {
Expand Down

0 comments on commit 73c2c05

Please sign in to comment.