You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
'use strict';
|
|
|
|
import _ from 'lodash'
|
|
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
import CallBlockingModule from './call-blocking'
|
|
import CallForwardModule from './call-forward'
|
|
import CallModule from './call'
|
|
import ConversationsModule from './conversations'
|
|
import LayoutModule from './layout'
|
|
import PbxConfigModule from './pbx-config/index'
|
|
import ReminderModule from './reminder'
|
|
import SpeedDialModule from './speed-dial'
|
|
import UserModule from './user'
|
|
import CommunicationModule from './communication'
|
|
|
|
Vue.use(Vuex);
|
|
|
|
export const store = new Vuex.Store({
|
|
modules: {
|
|
callBlocking: CallBlockingModule,
|
|
callForward: CallForwardModule,
|
|
call: CallModule,
|
|
conversations: ConversationsModule,
|
|
layout: LayoutModule,
|
|
pbxConfig: PbxConfigModule,
|
|
reminder: ReminderModule,
|
|
speedDial: SpeedDialModule,
|
|
user: UserModule,
|
|
communication: CommunicationModule
|
|
},
|
|
getters: {
|
|
pageTitle(state) {
|
|
return _.get(state, 'route.meta.title', 'Not defined');
|
|
},
|
|
pageSubtitle(state) {
|
|
return _.get(state, 'route.meta.subtitle', '');
|
|
}
|
|
}
|
|
});
|