fix store channel

This commit is contained in:
=
2021-02-04 14:40:25 +01:00
parent c44465430d
commit 490c4ed21b
2 changed files with 5 additions and 5 deletions
@@ -7,7 +7,7 @@ export class UnderTheHoodService extends baseRestService {
BASE_URL = async () => (await CONFIGURATION).api.apiServerUrl;
async getChannels() {
let result = await this.Get<server.channels>((await this.BASE_URL()) + "/api/underthehood/channels_io");
underTheHoodActions.SetChannels(store, result);
underTheHoodActions.SetIOChannels(store, result);
return result;
}
}
@@ -7,7 +7,7 @@ export interface UnderTheHoodStoreModel {
export interface UnderTheHoodActions {
SetChannels(context, model: server.channels)
SetIOChannels(context, model: server.channels)
}
export interface UnderTheHoodGetters {
@@ -24,15 +24,15 @@ export const underTheHoodStore = {
mutations: {
SetChannels(state: UnderTheHoodStoreModel, model: server.channels) {
SetIOChannels(state: UnderTheHoodStoreModel, model: server.channels) {
state.ioChannels = model;
},
},
actions: {
async SetChannels(context, model: server.channels) {
context.commit("SetChannels", model);
async SetIOChannels(context, model: server.channels) {
context.commit("SetIOChannels", model);
},
} as UnderTheHoodActions