- Modified privacywrite query with graphLookup:
$graphLookup: {
from: "projects",
startWith: "$id_main_project",
connectFromField: "id_main_project",
connectToField: "_id",
as: "ris",
restrictSearchWithMatch: { $or: [{ privacyread: server_constants.Privacy.all }, { userId: userId }] }
}
},
{ $match: { "ris.privacyread": { $exists: true } } },
This commit is contained in:
@@ -160,12 +160,6 @@ export default class SingleProject extends Vue {
|
||||
this.clButtPopover += ' pos-item-popover_cursor'
|
||||
}
|
||||
|
||||
// this.getinputdescr = 'inputdescr' + this.itemproject._id
|
||||
|
||||
// console.log('classDescrEdit = ', this.classDescrEdit)
|
||||
// console.log('classDescr', this.classDescr)
|
||||
|
||||
// console.log('UserStore.state.lang', UserStore.state.lang)
|
||||
if (this.isProject()) {
|
||||
this.menuPopupProj = tools.menuPopupProj[UserStore.state.lang]
|
||||
}
|
||||
@@ -191,7 +185,7 @@ export default class SingleProject extends Vue {
|
||||
}
|
||||
|
||||
public clickRiga(clickmenu: boolean = false) {
|
||||
// console.log('CLICK RIGA ************')
|
||||
console.log('CLICK RIGA PROJ************')
|
||||
|
||||
if (!this.sel) {
|
||||
if (!this.inEdit) {
|
||||
@@ -272,7 +266,7 @@ export default class SingleProject extends Vue {
|
||||
this.updateClasses()
|
||||
}
|
||||
|
||||
this.faiFocus('inputdescr', false, true)
|
||||
this.faiFocus('inputprojdescr', false, true)
|
||||
}
|
||||
// console.log('FINE - editProject')
|
||||
}
|
||||
@@ -288,11 +282,12 @@ export default class SingleProject extends Vue {
|
||||
}
|
||||
|
||||
if (!!theField) {
|
||||
console.log('FOCUS PROJ', theField)
|
||||
theField.focus()
|
||||
}
|
||||
|
||||
// console.log('focus()')
|
||||
}, 100)
|
||||
}, 300)
|
||||
}
|
||||
|
||||
public getFocus(e) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:to="getrouteto"/>
|
||||
|
||||
<div class="flex-item donotdrag divdescrTot">
|
||||
<q-input v-if="(sel && inEdit)" hide-underline type="textarea" ref="inputdescr"
|
||||
<q-input v-if="(sel && inEdit)" hide-underline type="textarea" ref="inputprojdescr"
|
||||
v-model.trim="precDescr"
|
||||
autogrow
|
||||
borderless
|
||||
|
||||
@@ -174,20 +174,6 @@ export default class SingleTodo extends Vue {
|
||||
this.clButtPopover += ' pos-item-popover_cursor'
|
||||
}
|
||||
|
||||
// if (this.inEdit) {
|
||||
// this.classDescr += ' hide'
|
||||
// this.classDescrEdit += ' show'
|
||||
// } else {
|
||||
// this.classDescrEdit += ' hide'
|
||||
// this.classDescr += ' show'
|
||||
// }
|
||||
|
||||
// this.getinputdescr = 'inputdescr' + this.itemtodo._id
|
||||
|
||||
// console.log('classDescrEdit = ', this.classDescrEdit)
|
||||
// console.log('classDescr', this.classDescr)
|
||||
|
||||
// console.log('UserStore.state.lang', UserStore.state.lang)
|
||||
if (this.isTodo()) {
|
||||
this.menuPopupTodo = tools.menuPopupTodo[UserStore.state.lang]
|
||||
}
|
||||
@@ -295,10 +281,11 @@ export default class SingleTodo extends Vue {
|
||||
}
|
||||
|
||||
if (!!theField) {
|
||||
console.log('FOCUS TODO', theField)
|
||||
theField.focus()
|
||||
}
|
||||
// console.log('focus()')
|
||||
}, 100)
|
||||
}, 300)
|
||||
}
|
||||
|
||||
public exitEdit(singola: boolean = false) {
|
||||
@@ -408,6 +395,8 @@ export default class SingleTodo extends Vue {
|
||||
} else {
|
||||
this.itemtodo.statustodo = tools.Status.COMPLETED
|
||||
}
|
||||
this.itemtodo.progress = 100
|
||||
|
||||
this.watchupdate('statustodo')
|
||||
|
||||
this.deselectAndExitEdit()
|
||||
|
||||
Reference in New Issue
Block a user