mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 10:13:45 -04:00
[web] Reorder methods
This commit is contained in:
parent
e26055cb76
commit
ba3f656b3a
@ -15,8 +15,8 @@ import * as types from '@/store/mutation_types'
|
|||||||
export default {
|
export default {
|
||||||
name: 'NavbarItemLink',
|
name: 'NavbarItemLink',
|
||||||
props: {
|
props: {
|
||||||
to: Object,
|
exact: Boolean,
|
||||||
exact: Boolean
|
to: Object
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
@ -27,15 +27,6 @@ export default {
|
|||||||
return this.$route.path.startsWith(this.to)
|
return this.$route.path.startsWith(this.to)
|
||||||
},
|
},
|
||||||
|
|
||||||
show_player_menu: {
|
|
||||||
get() {
|
|
||||||
return this.$store.state.show_player_menu
|
|
||||||
},
|
|
||||||
set(value) {
|
|
||||||
this.$store.commit(types.SHOW_PLAYER_MENU, value)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
show_burger_menu: {
|
show_burger_menu: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.show_burger_menu
|
return this.$store.state.show_burger_menu
|
||||||
@ -43,10 +34,24 @@ export default {
|
|||||||
set(value) {
|
set(value) {
|
||||||
this.$store.commit(types.SHOW_BURGER_MENU, value)
|
this.$store.commit(types.SHOW_BURGER_MENU, value)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
show_player_menu: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.show_player_menu
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
this.$store.commit(types.SHOW_PLAYER_MENU, value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
full_path() {
|
||||||
|
const resolved = this.$router.resolve(this.to)
|
||||||
|
return resolved.href
|
||||||
|
},
|
||||||
|
|
||||||
open_link() {
|
open_link() {
|
||||||
if (this.show_burger_menu) {
|
if (this.show_burger_menu) {
|
||||||
this.$store.commit(types.SHOW_BURGER_MENU, false)
|
this.$store.commit(types.SHOW_BURGER_MENU, false)
|
||||||
@ -55,11 +60,6 @@ export default {
|
|||||||
this.$store.commit(types.SHOW_PLAYER_MENU, false)
|
this.$store.commit(types.SHOW_PLAYER_MENU, false)
|
||||||
}
|
}
|
||||||
this.$router.push(this.to)
|
this.$router.push(this.to)
|
||||||
},
|
|
||||||
|
|
||||||
full_path() {
|
|
||||||
const resolved = this.$router.resolve(this.to)
|
|
||||||
return resolved.href
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user