From 60a315f360dd3f9a794addacb49a632eec4ff6d5 Mon Sep 17 00:00:00 2001 From: Mykyta Poturai Date: Sat, 22 Aug 2020 23:10:52 +0300 Subject: [PATCH] Refactor popular page V2 --- src/renderer/views/Popular/Popular.js | 7 ++----- src/renderer/views/Popular/Popular.vue | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/renderer/views/Popular/Popular.js b/src/renderer/views/Popular/Popular.js index cd80eeab..e45b4a9c 100644 --- a/src/renderer/views/Popular/Popular.js +++ b/src/renderer/views/Popular/Popular.js @@ -26,14 +26,11 @@ export default Vue.extend({ mounted: function () { this.shownResults = this.popularCache if (!this.shownResults || this.shownResults.length < 1) { - this.fetchTrendingInfo() + this.fetchPopularInfo() } }, methods: { - refreshTrendingInfo: function () { - this.fetchTrendingInfo() - }, - fetchTrendingInfo: async function () { + fetchPopularInfo: async function () { const searchPayload = { resource: 'popular', id: '', diff --git a/src/renderer/views/Popular/Popular.vue b/src/renderer/views/Popular/Popular.vue index d16346c9..b133588f 100644 --- a/src/renderer/views/Popular/Popular.vue +++ b/src/renderer/views/Popular/Popular.vue @@ -17,8 +17,8 @@ icon="sync" class="floatingTopButton" :size="12" - :theme="primary" - @click="refreshTrendingInfo" + theme="primary" + @click="fetchPopularInfo" />