Browse Source

Reference method properly within this

pull/8/head
Kristijan Mitrovic 4 years ago
parent
commit
6ce18aa9be
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/account/NetworkPage.vue

+ 4
- 4
src/account/NetworkPage.vue View File

@@ -353,13 +353,13 @@
this.getAppLinks(user.locale);
},
beforeDestroy () {
stopStatusRefresher(this.refresher);
this.stopStatusRefresher(this.refresher);
},
watch: {
network (net) {
if (net) {
if (net.state === 'running' || net.state === 'stopped' || net.state === 'error_stopping' || net.uuid === 'Not Found') {
stopStatusRefresher(this.refresher);
this.stopStatusRefresher(this.refresher);
}
if (net.uuid === 'Not Found') {
this.$router.replace({path: '/bubbles'});
@@ -380,10 +380,10 @@
}
if (latestStats !== null) {
this.stats = latestStats;
if (this.stats.percent === 100) stopStatusRefresher(this.refresher);
if (this.stats.percent === 100) this.stopStatusRefresher(this.refresher);
} else {
// status not found for our network
stopStatusRefresher(this.refresher);
this.stopStatusRefresher(this.refresher);
}
}
},


Loading…
Cancel
Save