mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
@@ -1,10 +1,15 @@
|
||||
/*!
|
||||
* 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';
|
||||
import ModalTypes from '../constants/ModalTypes';
|
||||
|
||||
const openUsersModal = () => ({
|
||||
const openAdministrationModal = () => ({
|
||||
type: EntryActionTypes.MODAL_OPEN,
|
||||
payload: {
|
||||
type: ModalTypes.USERS,
|
||||
type: ModalTypes.ADMINISTRATION,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -15,10 +20,13 @@ const openUserSettingsModal = () => ({
|
||||
},
|
||||
});
|
||||
|
||||
const openProjectAddModal = () => ({
|
||||
const openAddProjectModal = (defaultProjectType) => ({
|
||||
type: EntryActionTypes.MODAL_OPEN,
|
||||
payload: {
|
||||
type: ModalTypes.PROJECT_ADD,
|
||||
type: ModalTypes.ADD_PROJECT,
|
||||
params: {
|
||||
defaultType: defaultProjectType,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -29,15 +37,26 @@ const openProjectSettingsModal = () => ({
|
||||
},
|
||||
});
|
||||
|
||||
const openBoardSettingsModal = (boardId) => ({
|
||||
type: EntryActionTypes.MODAL_OPEN,
|
||||
payload: {
|
||||
type: ModalTypes.BOARD_SETTINGS,
|
||||
params: {
|
||||
id: boardId,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const closeModal = () => ({
|
||||
type: EntryActionTypes.MODAL_CLOSE,
|
||||
payload: {},
|
||||
});
|
||||
|
||||
export default {
|
||||
openUsersModal,
|
||||
openAdministrationModal,
|
||||
openUserSettingsModal,
|
||||
openProjectAddModal,
|
||||
openAddProjectModal,
|
||||
openProjectSettingsModal,
|
||||
openBoardSettingsModal,
|
||||
closeModal,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user