fix: favorites and spotify favorites

This commit is contained in:
Roberto Tonino
2021-03-12 21:02:06 +01:00
parent 1e3a4a2212
commit 39a178cfc7
3 changed files with 23 additions and 27 deletions

View File

@@ -164,7 +164,7 @@
</template>
<script>
import { computed, defineComponent, reactive, toRefs, watch } from '@vue/composition-api'
import { defineComponent, reactive, toRefs, watch } from '@vue/composition-api'
import PreviewControls from '@components/globals/PreviewControls.vue'
import CoverContainer from '@components/globals/CoverContainer.vue'
@@ -197,7 +197,8 @@ export default defineComponent({
isRefreshingFavorites,
refreshFavorites
} = useFavorites()
const reloadButton = computed(() => ctx.refs.reloadButton)
refreshFavorites({ isInitial: true })
watch(isRefreshingFavorites, (newVal, oldVal) => {
// If oldVal is true and newOne is false, it means that a refreshing has just terminated