Skip to content
Snippets Groups Projects
Commit 0a1836a1 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'redmine-issues/14266' into 'develop'

REDMINE_ISSUE-14266|Système de défilement des signalements - Mauvais affichage de la géométrie et du type

See merge request !433
parents f9360ef9 d08ed14f
No related branches found
No related tags found
No related merge requests found
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
aria-describedby="Table des données du signalement" aria-describedby="Table des données du signalement"
> >
<tbody> <tbody>
<tr v-if="feature_type || featureType"> <tr v-if="featureType">
<td> <td>
<strong> Type de signalement </strong> <strong> Type de signalement </strong>
</td> </td>
<td> <td>
<FeatureTypeLink :feature-type="feature_type || featureType" /> <FeatureTypeLink :feature-type="featureType" />
</td> </td>
</tr> </tr>
<tr <tr
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<script> <script>
import { mapState, mapGetters } from 'vuex'; import { mapState } from 'vuex';
import FeatureTypeLink from '@/components/FeatureType/FeatureTypeLink'; import FeatureTypeLink from '@/components/FeatureType/FeatureTypeLink';
import { statusChoices } from '@/utils'; import { statusChoices } from '@/utils';
...@@ -141,10 +141,6 @@ export default { ...@@ -141,10 +141,6 @@ export default {
'linked_features', 'linked_features',
]), ]),
...mapGetters('feature-type', [
'feature_type',
]),
statusIcon() { statusIcon() {
switch (this.currentFeature.status) { switch (this.currentFeature.status) {
case 'archived': case 'archived':
......
<template> <template>
<router-link <router-link
v-if="featureType && featureType.slug"
:to="{ :to="{
name: 'details-type-signalement', name: 'details-type-signalement',
params: { feature_type_slug: featureType.slug }, params: { feature_type_slug: featureType.slug },
......
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
'project' 'project'
]), ]),
...mapState('feature-type', [ ...mapState('feature-type', [
'feature_types' 'feature_types',
'feature_type',
]), ]),
...mapState('feature', [ ...mapState('feature', [
'currentFeature' 'currentFeature'
...@@ -196,6 +197,7 @@ export default { ...@@ -196,6 +197,7 @@ export default {
async getPageInfo() { async getPageInfo() {
if (this.$route.params.slug_signal) { // if coming from the route with an id if (this.$route.params.slug_signal) { // if coming from the route with an id
this.slugSignal = this.$route.params.slug_signal; this.slugSignal = this.$route.params.slug_signal;
this.featureType = this.feature_type;
} //* else it would be retrieve after fetchFilteredFeature with offset } //* else it would be retrieve after fetchFilteredFeature with offset
this.DISPLAY_LOADER('Recherche du signalement'); this.DISPLAY_LOADER('Recherche du signalement');
let promises = []; let promises = [];
...@@ -206,7 +208,7 @@ export default { ...@@ -206,7 +208,7 @@ export default {
this.GET_PROJECT_INFO(this.$route.params.slug), this.GET_PROJECT_INFO(this.$route.params.slug),
); );
} }
//* changement de requête selon s'il y a un id ou un offset //* changement de requête selon s'il y a un id ou un offset(dans le cas du parcours des signalements filtrés)
if (this.$route.query.offset >= 0) { if (this.$route.query.offset >= 0) {
promises.push(this.fetchFilteredFeature()); promises.push(this.fetchFilteredFeature());
} else if (!this.currentFeature || this.currentFeature.feature_id !== this.slugSignal) { } else if (!this.currentFeature || this.currentFeature.feature_id !== this.slugSignal) {
......
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