25 lines
454 B
JavaScript
25 lines
454 B
JavaScript
/*!
|
|
* Copyright (c) 2024 PLANKA Software GmbH
|
|
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
|
*/
|
|
|
|
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
const openModal = (type, params = {}) => ({
|
|
type: ActionTypes.MODAL_OPEN,
|
|
payload: {
|
|
type,
|
|
params,
|
|
},
|
|
});
|
|
|
|
const closeModal = () => ({
|
|
type: ActionTypes.MODAL_CLOSE,
|
|
payload: {},
|
|
});
|
|
|
|
export default {
|
|
openModal,
|
|
closeModal,
|
|
};
|