+
+ {this.renderSpinner()}
+
{change && change.map((item, idx) => (
({tenant: state.tenant}))(ChangeStatusPage)
+export default connect(state => ({
+ tenant: state.tenant,
+ remoteData: state.change
+}))(ChangeStatusPage)
diff --git a/web/src/reducers/change.js b/web/src/reducers/change.js
new file mode 100644
index 0000000000..73bb545110
--- /dev/null
+++ b/web/src/reducers/change.js
@@ -0,0 +1,44 @@
+// Copyright 2018 Red Hat, Inc
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations
+// under the License.
+
+import {
+ CHANGE_FETCH_FAIL,
+ CHANGE_FETCH_REQUEST,
+ CHANGE_FETCH_SUCCESS
+} from '../actions/change'
+
+export default (state = {
+ isFetching: false,
+ change: null
+}, action) => {
+ switch (action.type) {
+ case CHANGE_FETCH_REQUEST:
+ return {
+ isFetching: true,
+ change: state.change
+ }
+ case CHANGE_FETCH_SUCCESS:
+ return {
+ isFetching: false,
+ change: action.change,
+ }
+ case CHANGE_FETCH_FAIL:
+ return {
+ isFetching: false,
+ change: state.change,
+ }
+ default:
+ return state
+ }
+}
diff --git a/web/src/reducers/index.js b/web/src/reducers/index.js
index fd7014844a..1b59fb835d 100644
--- a/web/src/reducers/index.js
+++ b/web/src/reducers/index.js
@@ -15,6 +15,7 @@
import { combineReducers } from 'redux'
import configErrors from './configErrors'
+import change from './change'
import errors from './errors'
import info from './info'
import job from './job'
@@ -24,6 +25,7 @@ import tenant from './tenant'
import tenants from './tenants'
const reducers = {
+ change,
info,
job,
jobs,