summary refs log tree commit diff
path: root/synapse_topology/webui/src/js/actions/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'synapse_topology/webui/src/js/actions/index.js')
-rw-r--r--synapse_topology/webui/src/js/actions/index.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/synapse_topology/webui/src/js/actions/index.js b/synapse_topology/webui/src/js/actions/index.js

index d55e920c99..7aa04ff212 100644 --- a/synapse_topology/webui/src/js/actions/index.js +++ b/synapse_topology/webui/src/js/actions/index.js
@@ -26,7 +26,6 @@ import { import { getServerSetup, - postServerName, getSecretkey, postCertPaths, postCerts, @@ -61,17 +60,10 @@ const setConfigDir = dir => ({ configDir: dir, }); -export const generateSecretKeys = consent => { - - return (dispatch, getState) => { - - dispatch(gettingSecretKeys()); - postServerName(getState().baseConfig.servername, consent) - .then( - result => dispatch(getSecretKey()), - error => dispatch(fail(error)), - ); +export const generateSecretKeys = serverName => { + return dispatch => { + dispatch(getSecretKey(serverName)) }; }; @@ -162,11 +154,11 @@ export const gettingSecretKeys = () => ({ type: GETTING_SECRET_KEY, }); -export const getSecretKey = () => { +export const getSecretKey = serverName => { return dispatch => { - getSecretkey().then( + getSecretkey(serverName).then( result => dispatch(setSecretKey(result)), error => dispatch(fail(error)), )