mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 17:24:59 +03:00
24 lines
468 B
JavaScript
24 lines
468 B
JavaScript
|
|
import EntryActionTypes from '../../constants/EntryActionTypes';
|
||
|
|
|
||
|
|
export const createAttachmentInCurrentCard = (data) => ({
|
||
|
|
type: EntryActionTypes.ATTACHMENT_IN_CURRENT_CARD_CREATE,
|
||
|
|
payload: {
|
||
|
|
data,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const updateAttachment = (id, data) => ({
|
||
|
|
type: EntryActionTypes.ATTACHMENT_UPDATE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
data,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export const deleteAttachment = (id) => ({
|
||
|
|
type: EntryActionTypes.ATTACHMENT_DELETE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|