🎉 First commit, from couchbase generator, basic changes

not tested / updated yet
This commit is contained in:
Sebastián Ramírez
2019-02-09 19:42:36 +04:00
commit 7f8bfc8faa
198 changed files with 21022 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { IUserProfile } from '@/interfaces';
import { MainState, AppNotification } from './state';
export const mutations = {
setToken(state: MainState, payload: string) {
state.token = payload;
},
setLoggedIn(state: MainState, payload: boolean) {
state.isLoggedIn = payload;
},
setLogInError(state: MainState, payload: boolean) {
state.logInError = payload;
},
setUserProfile(state: MainState, payload: IUserProfile) {
state.userProfile = payload;
},
setDashboardMiniDrawer(state: MainState, payload: boolean) {
state.dashboardMiniDrawer = payload;
},
setDashboardShowDrawer(state: MainState, payload: boolean) {
state.dashboardShowDrawer = payload;
},
addNotification(state: MainState, payload: AppNotification) {
state.notifications.push(payload);
},
removeNotification(state: MainState, payload: AppNotification) {
state.notifications = state.notifications.filter((notification) => notification !== payload);
},
};