mirror of https://github.com/VueTubeApp/VueTube
search loading state on Back gesture navigation
This commit is contained in:
parent
9eef8d8762
commit
ea482eb29b
|
@ -36,6 +36,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSearch() {
|
getSearch() {
|
||||||
|
this.$store.commit("search/setLoading", true); // in case navigated to the page not from top bar
|
||||||
const searchQuestion = this.$route.query.q;
|
const searchQuestion = this.$route.query.q;
|
||||||
this.$youtube.search(searchQuestion).then((response) => {
|
this.$youtube.search(searchQuestion).then((response) => {
|
||||||
this.$store.commit("search/setLoading", false);
|
this.$store.commit("search/setLoading", false);
|
||||||
|
|
Loading…
Reference in New Issue