Top-Nav: Fix undefined/misplaced references
This commit is contained in:
parent
b8a88ac6ac
commit
bd60d3c838
|
@ -1,4 +1,5 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
import { mapActions } from 'vuex'
|
||||||
import FtInput from '../ft-input/ft-input.vue'
|
import FtInput from '../ft-input/ft-input.vue'
|
||||||
import FtSearchFilters from '../ft-search-filters/ft-search-filters.vue'
|
import FtSearchFilters from '../ft-search-filters/ft-search-filters.vue'
|
||||||
import FtProfileSelector from '../ft-profile-selector/ft-profile-selector.vue'
|
import FtProfileSelector from '../ft-profile-selector/ft-profile-selector.vue'
|
||||||
|
@ -255,6 +256,10 @@ export default Vue.extend({
|
||||||
|
|
||||||
createNewWindow: function () {
|
createNewWindow: function () {
|
||||||
ipcRenderer.send('createNewWindow')
|
ipcRenderer.send('createNewWindow')
|
||||||
}
|
},
|
||||||
|
|
||||||
|
...mapActions([
|
||||||
|
'showToast'
|
||||||
|
])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -239,7 +239,7 @@ const actions = {
|
||||||
return extractors.reduce((a, c) => a || c(), null) || paramsObject
|
return extractors.reduce((a, c) => a || c(), null) || paramsObject
|
||||||
},
|
},
|
||||||
|
|
||||||
getYoutubeUrlInfo (_, urlStr) {
|
getYoutubeUrlInfo ({ state }, urlStr) {
|
||||||
// Returns
|
// Returns
|
||||||
// - urlType [String] `video`, `playlist`
|
// - urlType [String] `video`, `playlist`
|
||||||
//
|
//
|
||||||
|
@ -332,11 +332,12 @@ const actions = {
|
||||||
const searchQuery = url.searchParams.get('search_query')
|
const searchQuery = url.searchParams.get('search_query')
|
||||||
url.searchParams.delete('search_query')
|
url.searchParams.delete('search_query')
|
||||||
|
|
||||||
|
const searchSettings = state.searchSettings
|
||||||
const query = {
|
const query = {
|
||||||
sortBy: this.searchSettings.sortBy,
|
sortBy: searchSettings.sortBy,
|
||||||
time: this.searchSettings.time,
|
time: searchSettings.time,
|
||||||
type: this.searchSettings.type,
|
type: searchSettings.type,
|
||||||
duration: this.searchSettings.duration
|
duration: searchSettings.duration
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [param, value] of url.searchParams) {
|
for (const [param, value] of url.searchParams) {
|
||||||
|
|
Loading…
Reference in New Issue