Compare commits
No commits in common. "af16c2470fe446f89f6be676cd22f61599ae664c" and "8e739e841fed496ddd02feec7c0187be0ceabb1d" have entirely different histories.
af16c2470f
...
8e739e841f
|
|
@ -43,7 +43,7 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
isOpen(val) {
|
isOpen(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.$nextTick(() => this.$refs.query.focus())
|
this.$refs.query.focus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -260,12 +260,8 @@ export default new Vuex.Store({
|
||||||
closeSearch({commit}) {
|
closeSearch({commit}) {
|
||||||
commit('setSearchPopupState', false)
|
commit('setSearchPopupState', false)
|
||||||
},
|
},
|
||||||
startQuery({state, commit}, query) {
|
startQuery({commit}, query) {
|
||||||
let channel = 'global'
|
fetch(this.state.microsubEndpoint + '?action=search&channel=global&query='+query, {
|
||||||
if (state.channel.uid !== null) {
|
|
||||||
channel = state.channel.uid
|
|
||||||
}
|
|
||||||
fetch(this.state.microsubEndpoint + '?action=search&channel='+channel+'&query='+query, {
|
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer ' + this.state.access_token
|
'Authorization': 'Bearer ' + this.state.access_token
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user