Skip to content
Snippets Groups Projects

REDMINE_ISSUE-17338 | Page mon compte - Activer le parcours des signalements

Merged REDMINE_ISSUE-17338 | Page mon compte - Activer le parcours des signalements
Merged Timothee P requested to merge redmine-issues/17338 into develop
1 file
+ 12
8
Compare changes
  • Side-by-side
  • Inline
<template>
<router-link
:is="position >= 0 ? 'router-link' : 'span'"
:is="query && position >= 0 ? 'router-link' : 'span'"
:to="{
name: 'details-signalement-filtre',
params: { slug },
@@ -47,14 +47,18 @@ export default {
'project'
]),
query() {
const searchParams = { ordering: this.ordering };
if (this.filter === 'feature_type_slug') { // when feature_type is the default filter of the project,
searchParams['feature_type_slug'] = this.properties.feature_type.slug; // get its slug for the current feature
}
if (this.position >= 0) {
searchParams['offset'] = this.position; // get its slug for the current feature
if (this.ordering) {
const searchParams = { ordering: this.ordering };
if (this.filter === 'feature_type_slug') { // when feature_type is the default filter of the project,
searchParams['feature_type_slug'] = this.properties.feature_type.slug; // get its slug for the current feature
}
if (this.position >= 0) {
searchParams['offset'] = this.position; // get its slug for the current feature
}
return searchParams;
}
return searchParams;
return null;
},
},
Loading