added missing calls in catch statements
This commit is contained in:
parent
645d635976
commit
965ff9653d
|
@ -53,6 +53,7 @@ $(() => {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
mergeConflictsStore.setLoadingState(false);
|
||||||
mergeConflictsStore.setFailedRequest();
|
mergeConflictsStore.setFailedRequest();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import axios from './lib/utils/axios_utils';
|
import axios from './lib/utils/axios_utils';
|
||||||
import Flash from './flash';
|
import flash from './flash';
|
||||||
import BlobForkSuggestion from './blob/blob_fork_suggestion';
|
import BlobForkSuggestion from './blob/blob_fork_suggestion';
|
||||||
import initChangesDropdown from './init_changes_dropdown';
|
import initChangesDropdown from './init_changes_dropdown';
|
||||||
import bp from './breakpoints';
|
import bp from './breakpoints';
|
||||||
|
@ -257,7 +257,10 @@ export default class MergeRequestTabs {
|
||||||
|
|
||||||
this.toggleLoading(false);
|
this.toggleLoading(false);
|
||||||
})
|
})
|
||||||
.catch(() => new Flash('An error occurred while fetching this tab.', 'alert'));
|
.catch(() => {
|
||||||
|
this.toggleLoading(false);
|
||||||
|
flash('An error occurred while fetching this tab.');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
mountPipelinesView() {
|
mountPipelinesView() {
|
||||||
|
@ -344,7 +347,10 @@ export default class MergeRequestTabs {
|
||||||
|
|
||||||
this.toggleLoading(false);
|
this.toggleLoading(false);
|
||||||
})
|
})
|
||||||
.catch(() => Flash('An error occurred while fetching this tab.', 'alert'));
|
.catch(() => {
|
||||||
|
this.toggleLoading(false);
|
||||||
|
flash('An error occurred while fetching this tab.');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show or hide the loading spinner
|
// Show or hide the loading spinner
|
||||||
|
|
Loading…
Reference in New Issue