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

add loader to last comments

parent 7c20ca33
No related branches found
No related tags found
2 merge requests!2132.3.2-rc1,!201REDMINE_ISSUE-12653
......@@ -108,7 +108,7 @@
<h3 class="ui header">Types de signalements</h3>
<div class="ui middle aligned divided list">
<div
:class="{ active: featureTypeLoading }"
:class="{ active : projectInfoLoading }"
class="ui inverted dimmer"
>
<div class="ui text loader">
......@@ -407,6 +407,14 @@
<div class="content">
<div class="center aligned header">Derniers commentaires</div>
<div class="center aligned description">
<div
:class="{ active: projectInfoLoading }"
class="ui inverted dimmer"
>
<div class="ui text loader">
Récupération des signalements en cours...
</div>
</div>
<div class="ui relaxed list">
<div
v-for="(item, index) in last_comments"
......@@ -627,7 +635,7 @@ export default {
isModalOpen: false,
is_suscriber: false,
tempMessage: null,
featureTypeLoading: true,
projectInfoLoading: true,
featureTypeImporting: false,
featuresLoading: true,
isFileSizeModalOpen: false
......@@ -912,11 +920,11 @@ export default {
mounted() {
this.GET_PROJECT_INFO(this.slug)
.then(() => {
this.featureTypeLoading = false;
this.projectInfoLoading = false;
setTimeout(this.initMap, 1000);
})
.catch(() => {
this.featureTypeLoading = false;
this.projectInfoLoading = false;
});
this.GET_PROJECT_FEATURES({
project_slug: this.slug,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment