mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 01:11:50 +03:00
Add project backgrounds
This commit is contained in:
@@ -14,6 +14,13 @@ export const updateCurrentProject = (data) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateCurrentProjectBackgroundImage = (data) => ({
|
||||
type: EntryActionTypes.CURRENT_PROJECT_BACKGROUND_IMAGE_UPDATE,
|
||||
payload: {
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCurrentProject = () => ({
|
||||
type: EntryActionTypes.CURRENT_PROJECT_DELETE,
|
||||
payload: {},
|
||||
|
||||
@@ -90,6 +90,28 @@ export const updateProjectReceived = (project) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateProjectBackgroundImageRequested = (id) => ({
|
||||
type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE_REQUESTED,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateProjectBackgroundImageSucceeded = (project) => ({
|
||||
type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE_SUCCEEDED,
|
||||
payload: {
|
||||
project,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateProjectBackgroundImageFailed = (id, error) => ({
|
||||
type: ActionTypes.PROJECT_BACKGROUND_IMAGE_UPDATE_FAILED,
|
||||
payload: {
|
||||
id,
|
||||
error,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteProjectRequested = (id) => ({
|
||||
type: ActionTypes.PROJECT_DELETE_REQUESTED,
|
||||
payload: {
|
||||
|
||||
@@ -170,11 +170,10 @@ export const updateUserEmailRequested = (id, data) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateUserEmailSucceeded = (id, email) => ({
|
||||
export const updateUserEmailSucceeded = (user) => ({
|
||||
type: ActionTypes.USER_EMAIL_UPDATE_SUCCEEDED,
|
||||
payload: {
|
||||
id,
|
||||
email,
|
||||
user,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -194,10 +193,10 @@ export const updateUserPasswordRequested = (id, data) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateUserPasswordSucceeded = (id) => ({
|
||||
export const updateUserPasswordSucceeded = (user) => ({
|
||||
type: ActionTypes.USER_PASSWORD_UPDATE_SUCCEEDED,
|
||||
payload: {
|
||||
id,
|
||||
user,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -217,11 +216,10 @@ export const updateUserUsernameRequested = (id, data) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateUserUsernameSucceeded = (id, username) => ({
|
||||
export const updateUserUsernameSucceeded = (user) => ({
|
||||
type: ActionTypes.USER_USERNAME_UPDATE_SUCCEEDED,
|
||||
payload: {
|
||||
id,
|
||||
username,
|
||||
user,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -240,11 +238,10 @@ export const updateUserAvatarRequested = (id) => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const updateUserAvatarSucceeded = (id, avatarUrl) => ({
|
||||
export const updateUserAvatarSucceeded = (user) => ({
|
||||
type: ActionTypes.USER_AVATAR_UPDATE_SUCCEEDED,
|
||||
payload: {
|
||||
id,
|
||||
avatarUrl,
|
||||
user,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user