Skip to content
Snippets Groups Projects
Commit 39f11549 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

hide last events in my_account if shared project

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