diff --git a/src/views/My_account.vue b/src/views/My_account.vue index 0ee43939977e77a2e211d13643b07aa61a97de04..3d7b105b32684814ceeb5fe0130b28f234ba5f91 100644 --- a/src/views/My_account.vue +++ b/src/views/My_account.vue @@ -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;