Merge pull request #534 from vikas5914/patch-2

Replace clearRefreshInterval with stopRefreshInterval
This commit is contained in:
rennokki 2020-09-16 04:20:07 +00:00 committed by GitHub
commit 6d8e8926d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -261,15 +261,15 @@
}, },
destroyed () { destroyed () {
if (this.refreshTicker) { if (this.refreshTicker) {
this.clearRefreshInterval(); this.stopRefreshInterval();
} }
}, },
watch: { watch: {
connected (newVal) { connected (newVal) {
newVal ? this.startRefreshInterval() : this.clearRefreshInterval(); newVal ? this.startRefreshInterval() : this.stopRefreshInterval();
}, },
autoRefresh (newVal) { autoRefresh (newVal) {
newVal ? this.startRefreshInterval() : this.clearRefreshInterval(); newVal ? this.startRefreshInterval() : this.stopRefreshInterval();
}, },
}, },
methods: { methods: {