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

add loader

parent bf6e4536
No related branches found
No related tags found
4 merge requests!295Version 3.0.0,!247REDMINE_ISSUE-12787,!245REDMINE_ISSUE-12786,!233REDMINE_ISSUE-12378
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
'row', 'row',
{ {
selected: selected:
selectedResource && selectedResource && resource.layer === selectedResource.layer,
resource.layer === selectedResource.layer,
}, },
]" ]"
> >
...@@ -191,10 +190,12 @@ export default { ...@@ -191,10 +190,12 @@ export default {
}, },
mounted() { mounted() {
this.$store.commit("DISPLAY_LOADER", "Interrogation du catologue datasud.");
this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug); this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug);
miscAPI miscAPI.getIdgoCatalog().then((data) => {
.getIdgoCatalog() this.$store.commit("DISCARD_LOADER");
.then((data) => (this.ressources = data.layers)); this.ressources = data.layers;
});
}, },
}; };
</script> </script>
......
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