load config

This commit is contained in:
jb-alvarado 2020-12-30 22:08:33 +01:00
parent 3a2254cfa0
commit 2cb5920c06

View File

@ -20,11 +20,13 @@
<b-nav-item to="/configure" exact-active-class="active-menu-item">
Configure
</b-nav-item>
<b-nav-text>&nbsp;&nbsp;</b-nav-text>
<b-nav-item-dropdown :text="configGui[configID].channel" right>
<b-dropdown-item v-for="(channel, index) in configGui" :key="channel.key" @click="selectChannel(index)">
{{ channel.channel }}
</b-dropdown-item>
</b-nav-item-dropdown>
<b-nav-text>&nbsp;&nbsp;</b-nav-text>
<b-nav-item to="/" @click="logout()">
Logout
</b-nav-item>
@ -55,6 +57,7 @@ export default {
selectChannel (index) {
this.$store.commit('config/UPDATE_CONFIG_ID', index)
this.$store.dispatch('config/getPlayoutConfig')
}
}
}