load config
This commit is contained in:
parent
3a2254cfa0
commit
2cb5920c06
@ -20,11 +20,13 @@
|
|||||||
<b-nav-item to="/configure" exact-active-class="active-menu-item">
|
<b-nav-item to="/configure" exact-active-class="active-menu-item">
|
||||||
Configure
|
Configure
|
||||||
</b-nav-item>
|
</b-nav-item>
|
||||||
|
<b-nav-text> </b-nav-text>
|
||||||
<b-nav-item-dropdown :text="configGui[configID].channel" right>
|
<b-nav-item-dropdown :text="configGui[configID].channel" right>
|
||||||
<b-dropdown-item v-for="(channel, index) in configGui" :key="channel.key" @click="selectChannel(index)">
|
<b-dropdown-item v-for="(channel, index) in configGui" :key="channel.key" @click="selectChannel(index)">
|
||||||
{{ channel.channel }}
|
{{ channel.channel }}
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
</b-nav-item-dropdown>
|
</b-nav-item-dropdown>
|
||||||
|
<b-nav-text> </b-nav-text>
|
||||||
<b-nav-item to="/" @click="logout()">
|
<b-nav-item to="/" @click="logout()">
|
||||||
Logout
|
Logout
|
||||||
</b-nav-item>
|
</b-nav-item>
|
||||||
@ -55,6 +57,7 @@ export default {
|
|||||||
|
|
||||||
selectChannel (index) {
|
selectChannel (index) {
|
||||||
this.$store.commit('config/UPDATE_CONFIG_ID', index)
|
this.$store.commit('config/UPDATE_CONFIG_ID', index)
|
||||||
|
this.$store.dispatch('config/getPlayoutConfig')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user