* client: confirm before deleting

This commit is contained in:
Ildar Kamalov
2019-05-22 19:11:16 +03:00
committed by Simon Zolin
parent c7b5830336
commit f40141bbbc
5 changed files with 12 additions and 7 deletions

View File

@@ -32,7 +32,6 @@ export const addClient = config => async (dispatch) => {
dispatch(addSuccessToast(t('client_added', { key: config.name })));
dispatch(getClients());
} catch (error) {
dispatch(toggleClientModal());
dispatch(addErrorToast({ error }));
dispatch(addClientFailure());
}
@@ -79,7 +78,6 @@ export const updateClient = (config, name) => async (dispatch) => {
dispatch(addSuccessToast(t('client_updated', { key: name })));
dispatch(getClients());
} catch (error) {
dispatch(toggleClientModal());
dispatch(addErrorToast({ error }));
dispatch(updateClientFailure());
}