Add a test upstreams button

Closes #321
This commit is contained in:
Ildar Kamalov
2018-09-21 18:08:39 +03:00
parent 02b28f4511
commit f727f999f9
7 changed files with 77 additions and 3 deletions

View File

@@ -31,9 +31,14 @@ const settings = handleActions({
const { upstream } = payload;
return { ...state, upstream };
},
[actions.testUpstreamRequest]: state => ({ ...state, processingTestUpstream: true }),
[actions.testUpstreamFailure]: state => ({ ...state, processingTestUpstream: false }),
[actions.testUpstreamSuccess]: state => ({ ...state, processingTestUpstream: false }),
}, {
processing: true,
processingUpstream: true,
processingTestUpstream: false,
processingSetUpstream: false,
upstream: '',
});