mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-24 20:25:17 +00:00
search loading state on Back gesture navigation
This commit is contained in:
parent
9eef8d8762
commit
ea482eb29b
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getSearch() {
|
||||
this.$store.commit("search/setLoading", true); // in case navigated to the page not from top bar
|
||||
const searchQuestion = this.$route.query.q;
|
||||
this.$youtube.search(searchQuestion).then((response) => {
|
||||
this.$store.commit("search/setLoading", false);
|
||||
|
|
Loading…
Reference in a new issue