Merge "web: clear status when changing tenant"

This commit is contained in:
Zuul 2019-02-04 20:58:06 +00:00 committed by Gerrit Code Review
commit f698238271
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@
// License for the specific language governing permissions and limitations
// under the License.
import { TENANT_SET } from '../actions/tenant'
import {
STATUS_FETCH_FAIL,
STATUS_FETCH_REQUEST,
@ -23,6 +24,11 @@ export default (state = {
status: null
}, action) => {
switch (action.type) {
case TENANT_SET:
return {
isFetching: false,
status: null,
}
case STATUS_FETCH_REQUEST:
return {
isFetching: true,