mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 17:24:59 +03:00
@@ -1,6 +1,32 @@
|
||||
/*!
|
||||
* Copyright (c) 2024 PLANKA Software GmbH
|
||||
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
import EntryActionTypes from '../constants/EntryActionTypes';
|
||||
|
||||
const logout = (invalidateAccessToken) => ({
|
||||
const toggleFavorites = (isEnabled) => ({
|
||||
type: EntryActionTypes.FAVORITES_TOGGLE,
|
||||
payload: {
|
||||
isEnabled,
|
||||
},
|
||||
});
|
||||
|
||||
const toggleEditMode = (isEnabled) => ({
|
||||
type: EntryActionTypes.EDIT_MODE_TOGGLE,
|
||||
payload: {
|
||||
isEnabled,
|
||||
},
|
||||
});
|
||||
|
||||
const updateHomeView = (value) => ({
|
||||
type: EntryActionTypes.HOME_VIEW_UPDATE,
|
||||
payload: {
|
||||
value,
|
||||
},
|
||||
});
|
||||
|
||||
const logout = (invalidateAccessToken = true) => ({
|
||||
type: EntryActionTypes.LOGOUT,
|
||||
payload: {
|
||||
invalidateAccessToken,
|
||||
@@ -8,5 +34,8 @@ const logout = (invalidateAccessToken) => ({
|
||||
});
|
||||
|
||||
export default {
|
||||
toggleFavorites,
|
||||
toggleEditMode,
|
||||
updateHomeView,
|
||||
logout,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user