Skip to content
Snippets Groups Projects

REDMINE_ISSUE-16828|REDMINE_ISSUE-17022|REDMINE_ISSUE-17031|REDMINE_ISSUE-17033| Page utilisateur - lien non valide vers signalement

Merged Timothee P requested to merge redmine-issues/16828-version-with-only-geojson into develop
1 file
+ 12
2
Compare changes
  • Side-by-side
  • Inline
@@ -72,7 +72,7 @@
class="inline"
/>
<span v-else>
{{ currentFeature.properties.status.label }}
{{ statusLabel }}
</span>
</td>
</tr>
@@ -140,7 +140,7 @@ import { mapState } from 'vuex';
import FeatureTypeLink from '@/components/FeatureType/FeatureTypeLink';
import FeatureEditStatusField from '@/components/Feature/FeatureEditStatusField';
import FeatureExtraForm from '@/components/Feature/Edit/FeatureExtraForm';
import { formatStringDate } from '@/utils';
import { statusChoices, formatStringDate } from '@/utils';
export default {
@@ -196,6 +196,16 @@ export default {
}
},
statusLabel() {
if (this.currentFeature.properties.status.label) {
return this.currentFeature.properties.status.label;
}
const status = statusChoices.find(
(el) => el.value === this.currentFeature.properties.status
);
return status ? status.name : '';
},
featureData() {
if (this.currentFeature.properties && this.featureType) {
return this.featureType.customfield_set.map((xtraForm) => {
Loading