Add file attachments

This commit is contained in:
Maksim Eltyshev
2020-04-21 05:44:12 +05:00
parent 202abacaec
commit 6a68ec9c1e
103 changed files with 1847 additions and 305 deletions
+23
View File
@@ -0,0 +1,23 @@
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,
},
});
+1
View File
@@ -8,6 +8,7 @@ export * from './list';
export * from './label';
export * from './card';
export * from './task';
export * from './attachment';
export * from './actions';
export * from './comment-action';
export * from './notification';
+3 -3
View File
@@ -63,10 +63,10 @@ export const clearCurrentUserUsernameUpdateError = () => ({
payload: {},
});
export const uploadCurrentUserAvatar = (file) => ({
type: EntryActionTypes.CURRENT_USER_AVATAR_UPLOAD,
export const updateCurrentUserAvatar = (data) => ({
type: EntryActionTypes.CURRENT_USER_AVATAR_UPDATE,
payload: {
file,
data,
},
});