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