Skip to content
Snippets Groups Projects
Commit a2539c88 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

prevent fetch features if offline

parent 516d722e
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,9 @@ export default {
},
computed: {
...mapState([
'isOnline'
]),
...mapState('projects', [
'project',
]),
......@@ -384,6 +387,7 @@ export default {
},
fetchPagedFeatures(newUrl) {
if (!this.isOnline) return;
let url = `${this.API_BASE_URL}projects/${this.projectSlug}/feature-paginated/?limit=${this.pagination.pagesize}&offset=${this.pagination.start}`;
//* if receiving next & previous url (// todo : might be not used anymore, to check)
if (newUrl && typeof newUrl === 'string') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment