diff --git a/embark-ui/src/actions/index.js b/embark-ui/src/actions/index.js index dbb1cbd89..0dc4bf8a8 100644 --- a/embark-ui/src/actions/index.js +++ b/embark-ui/src/actions/index.js @@ -113,7 +113,7 @@ export const contractFile = { export const CONTRACT_FUNCTION = createRequestTypes('CONTRACT_FUNCTION'); export const contractFunction = { - post: (contractName, method, inputs, gasPrice) => action(CONTRACT_FUNCTION[REQUEST], {contractName, method, inputs, gasPrice}), + post: (contractName, method, inputs, gasPrice) => action(CONTRACT_FUNCTION[REQUEST], {contractName, method, inputs, gasPrice, noLoading: true}), success: (result, payload) => action(CONTRACT_FUNCTION[SUCCESS], {contractFunctions: [{...result, ...payload}]}), failure: (error) => action(CONTRACT_FUNCTION[FAILURE], {error}) }; diff --git a/embark-ui/src/reducers/index.js b/embark-ui/src/reducers/index.js index 32d37c6a3..449fa1394 100644 --- a/embark-ui/src/reducers/index.js +++ b/embark-ui/src/reducers/index.js @@ -133,7 +133,7 @@ function errorEntities(state = {}, action) { } function loading(_state = false, action) { - return action.type.endsWith(REQUEST); + return action.type.endsWith(REQUEST) && !action.noLoading; } function compilingContract(state = false, action) { diff --git a/embark-ui/src/sagas/index.js b/embark-ui/src/sagas/index.js index 83a953537..07eaab570 100644 --- a/embark-ui/src/sagas/index.js +++ b/embark-ui/src/sagas/index.js @@ -186,8 +186,8 @@ export function *initBlockHeader() { const channel = yield call(createChannel, socket); while (true) { yield take(channel); - yield put({type: actions.BLOCKS[actions.REQUEST]}); - yield put({type: actions.TRANSACTIONS[actions.REQUEST]}); + yield put({type: actions.BLOCKS[actions.REQUEST], noLoading: true}); + yield put({type: actions.TRANSACTIONS[actions.REQUEST], noLoading: true}); } }