Skip to content
Snippets Groups Projects
Commit d0a39b21 authored by Camille Blanchon's avatar Camille Blanchon
Browse files

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

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

See merge request !634
parents 57ab6a98 bb4287b7
No related branches found
No related tags found
1 merge request!634REDMINE_ISSUE-17338 | Page mon compte - Activer le parcours des signalements
<template> <template>
<router-link <router-link
:is="position >= 0 ? 'router-link' : 'span'" :is="query && position >= 0 ? 'router-link' : 'span'"
:to="{ :to="{
name: 'details-signalement-filtre', name: 'details-signalement-filtre',
params: { slug }, params: { slug },
...@@ -47,14 +47,18 @@ export default { ...@@ -47,14 +47,18 @@ export default {
'project' 'project'
]), ]),
query() { query() {
const searchParams = { ordering: this.ordering }; if (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 const searchParams = { ordering: this.ordering };
} if (this.filter === 'feature_type_slug') { // when feature_type is the default filter of the project,
if (this.position >= 0) { searchParams['feature_type_slug'] = this.properties.feature_type.slug; // get its slug for the current feature
searchParams['offset'] = this.position; // 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;
}, },
}, },
......
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