Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#847 Cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Jun 9, 2017
1 parent 83cf3a2 commit e52e721
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 5 additions & 3 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,12 @@ class DocumentList extends Component {
}

getData = (id, page, sortingQuery, refresh) => {
const {windowType, updateUri, setNotFound} = this.props;
const {
dispatch, windowType, updateUri, setNotFound
} = this.props;

setNotFound && setNotFound(false);
this.props.dispatch(indicatorState('pending'));
dispatch(indicatorState('pending'));

if(updateUri){
id && updateUri('viewId', id);
Expand All @@ -366,7 +368,7 @@ class DocumentList extends Component {
return browseViewRequest(
id, page, this.pageLength, sortingQuery, windowType
).then(response => {
this.props.dispatch(indicatorState('saved'));
dispatch(indicatorState('saved'));

this.mounted && this.setState(Object.assign({}, {
data: response.data,
Expand Down
8 changes: 0 additions & 8 deletions src/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ export default class App extends Component {
languageSuccess(cachedLang);
}

// axios.interceptors.request.use(config => {
// store.dispatch(indicatorState('pending'));
// return config;
// }, error => {
// return Promise.reject(error);
// });

axios.interceptors.response.use(function (response) {
// store.dispatch(indicatorState('saved'));
return response;
}, function (error) {
if(!error.response){
Expand Down

0 comments on commit e52e721

Please sign in to comment.