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

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

REDMINE_ISSUE-12779

See merge request !290
parents 34a1e0dd 39f11549
No related branches found
No related tags found
2 merge requests!295Version 3.0.0,!290REDMINE_ISSUE-12779
...@@ -137,7 +137,10 @@ ...@@ -137,7 +137,10 @@
</div> </div>
</div> </div>
<div class="row"> <div
v-if="!isSharedProject"
class="row"
>
<div class="fourteen wide column"> <div class="fourteen wide column">
<div class="ui three stackable cards"> <div class="ui three stackable cards">
<div class="red card"> <div class="red card">
...@@ -335,9 +338,12 @@ export default { ...@@ -335,9 +338,12 @@ export default {
return null; return null;
}, },
isSharedProject() {
return this.$route.path.includes('projet-partage');
},
availableProjects() { availableProjects() {
console.log(this.$route.path); if (this.isSharedProject) {
if (this.$route.path.includes('projet-partage')) {
return this.projects.filter((el) => el.slug === this.$route.params.slug); return this.projects.filter((el) => el.slug === this.$route.params.slug);
} }
return this.projects; return this.projects;
...@@ -368,7 +374,7 @@ export default { ...@@ -368,7 +374,7 @@ export default {
}, },
modifyUrl(url) { modifyUrl(url) {
if (this.$route.path.includes('projet-partage')) { if (this.isSharedProject) {
return url.replace('projet', 'projet-partage'); return url.replace('projet', 'projet-partage');
} }
return url; return url;
......
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