mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 09:15:09 +03:00
32 lines
617 B
JavaScript
32 lines
617 B
JavaScript
|
|
/*!
|
||
|
|
* 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';
|
||
|
|
|
||
|
|
const updateConfig = (data) => ({
|
||
|
|
type: EntryActionTypes.CONFIG_UPDATE,
|
||
|
|
payload: {
|
||
|
|
data,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
const handleConfigUpdate = (config) => ({
|
||
|
|
type: EntryActionTypes.CONFIG_UPDATE_HANDLE,
|
||
|
|
payload: {
|
||
|
|
config,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
const testSmtpConfig = () => ({
|
||
|
|
type: EntryActionTypes.SMTP_CONFIG_TEST,
|
||
|
|
payload: {},
|
||
|
|
});
|
||
|
|
|
||
|
|
export default {
|
||
|
|
updateConfig,
|
||
|
|
handleConfigUpdate,
|
||
|
|
testSmtpConfig,
|
||
|
|
};
|