summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-04 20:58:06 +0000
committerGerrit Code Review <review@openstack.org>2019-02-04 20:58:06 +0000
commitf698238271076e4c82d7f4911560b11169e705e9 (patch)
tree5d7a49ff32c89854e5a12763f8f1c8d475729d78
parent172dae4c5cad070196f1375b3fa8f3518f1fd4f0 (diff)
parent93cc8d274a4f1bbe1818edbda5199adadb5bff85 (diff)
Merge "web: clear status when changing tenant"
-rw-r--r--web/src/reducers/status.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/src/reducers/status.js b/web/src/reducers/status.js
index 33d0ecf..a277947 100644
--- a/web/src/reducers/status.js
+++ b/web/src/reducers/status.js
@@ -12,6 +12,7 @@
12// License for the specific language governing permissions and limitations 12// License for the specific language governing permissions and limitations
13// under the License. 13// under the License.
14 14
15import { TENANT_SET } from '../actions/tenant'
15import { 16import {
16 STATUS_FETCH_FAIL, 17 STATUS_FETCH_FAIL,
17 STATUS_FETCH_REQUEST, 18 STATUS_FETCH_REQUEST,
@@ -23,6 +24,11 @@ export default (state = {
23 status: null 24 status: null
24}, action) => { 25}, action) => {
25 switch (action.type) { 26 switch (action.type) {
27 case TENANT_SET:
28 return {
29 isFetching: false,
30 status: null,
31 }
26 case STATUS_FETCH_REQUEST: 32 case STATUS_FETCH_REQUEST:
27 return { 33 return {
28 isFetching: true, 34 isFetching: true,