fix store channel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user