mirror of
https://github.com/kevin-DL/full-stack-fastapi-postgresql.git
synced 2026-01-15 03:24:47 +00:00
🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
@@ -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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user