Create substore as function

This commit is contained in:
Matthias 2021-08-28 14:25:31 +02:00
parent fe8ea0afdf
commit 60fe49cbaf
2 changed files with 679 additions and 665 deletions

View File

@ -4,7 +4,7 @@ import Vuex from 'vuex';
import userService from '@/shared/userService';
import { getCurrentTheme, getTheme, storeCurrentTheme } from '@/shared/themes';
import axios, { AxiosInstance } from 'axios';
import ftbotModule, { BotStoreGetters } from './modules/ftbot';
import { createBotSubStore, BotStoreGetters } from './modules/ftbot';
import alertsModule from './modules/alerts';
import layoutModule from './modules/layout';
import settingsModule from './modules/settings';
@ -40,7 +40,7 @@ export default new Vuex.Store({
},
},
modules: {
ftbot: ftbotModule,
ftbot: createBotSubStore(),
alerts: alertsModule,
layout: layoutModule,
uiSettings: settingsModule,

File diff suppressed because it is too large Load Diff