Insert menu: "My Proj Shared" and when I insert a project, put the right property privacy

This commit is contained in:
Paolo Arena
2019-04-29 02:47:53 +02:00
parent d6d527e1a8
commit 166be747a5
11 changed files with 118 additions and 61 deletions

View File

@@ -11,6 +11,7 @@ import { CDate } from '../../CDate'
import { date } from 'quasar'
import { GlobalStore } from '@store'
import { RouteNames } from '@src/router/route-names'
@Component({
components: { SubMenusProj, CDate },
@@ -283,12 +284,16 @@ export default class SingleProject extends Vue {
return this.itemproject.userId === UserStore.state.userId
}
get tipoProj() {
return this.$route.name
}
get getrouteto() {
return tools.getUrlByTipoProj(this.isMyProject) + this.itemproject._id
return tools.getUrlByTipoProj(this.tipoProj) + this.itemproject._id
}
public goIntoTheProject() {
this.$router.replace(tools.getUrlByTipoProj(this.isMyProject) + this.itemproject._id)
this.$router.replace(tools.getUrlByTipoProj(this.tipoProj) + this.itemproject._id)
}
public editProject() {