End "project and Todos": what could modify or readonly.
This commit is contained in:
@@ -44,6 +44,10 @@ export default class SingleProject extends Vue {
|
||||
return !Projects.getters.getifCanISeeProj(this.itemproject)
|
||||
}
|
||||
|
||||
get CanIModifyProject() {
|
||||
return Projects.getters.CanIModifyPanelPrivacy(this.itemproject)
|
||||
}
|
||||
|
||||
@Prop({ required: true }) public itemproject: IProject
|
||||
|
||||
@Watch('itemproject.enableExpiring') public valueChanged4() {
|
||||
@@ -248,12 +252,16 @@ export default class SingleProject extends Vue {
|
||||
this.editProject()
|
||||
}
|
||||
|
||||
get isMyProject() {
|
||||
return this.itemproject.userId === UserStore.state.userId
|
||||
}
|
||||
|
||||
get getrouteto() {
|
||||
return '/projects/' + this.itemproject._id
|
||||
return tools.getUrlByTipoProj(this.isMyProject) + this.itemproject._id
|
||||
}
|
||||
|
||||
public goIntoTheProject() {
|
||||
this.$router.replace('/projects/' + this.itemproject._id)
|
||||
this.$router.replace(tools.getUrlByTipoProj(this.isMyProject) + this.itemproject._id)
|
||||
}
|
||||
|
||||
public editProject() {
|
||||
@@ -290,7 +298,7 @@ export default class SingleProject extends Vue {
|
||||
}
|
||||
|
||||
// console.log('focus()')
|
||||
}, 300)
|
||||
}, 500)
|
||||
}
|
||||
|
||||
public getFocus(e) {
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
<div v-if="isProject()" class="flex-item pos-item " @mousedown="clickRiga">
|
||||
<q-btn flat
|
||||
:class="clButtPopover"
|
||||
:readonly="!CanIModifyProject"
|
||||
:disable="!CanIModifyProject"
|
||||
icon="menu">
|
||||
<q-menu ref="popmenu" self="top right">
|
||||
<SubMenusProj :menuPopupProj="menuPopupProj" :itemproject="itemproject" @clickMenu="clickMenu"
|
||||
|
||||
Reference in New Issue
Block a user