mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
new config
This commit is contained in:
@@ -25,9 +25,9 @@ export const updateConfiguration = newConfig => (dispatch, getState) => {
|
||||
|
||||
dispatch(updateConfigRequest());
|
||||
coralApi(`/asset/${assetId}/settings`, {method: 'PUT', body: newConfig})
|
||||
.then(({settings}) => {
|
||||
.then(() => {
|
||||
dispatch(addNotification('success', lang.t('successUpdateSettings')));
|
||||
dispatch(updateConfigSuccess(settings));
|
||||
dispatch(updateConfigSuccess({config: newConfig}));
|
||||
})
|
||||
.catch(error => dispatch(updateConfigFailure(error)));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user