View details project for mobile
This commit is contained in:
@@ -199,7 +199,7 @@ export default class CTodo extends Vue {
|
||||
}
|
||||
|
||||
public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) {
|
||||
console.log('CTODO deselectAllRowstodo : ', item)
|
||||
// console.log('CTODO deselectAllRowstodo : ', item)
|
||||
|
||||
for (let i = 0; i < this.$refs.single.length; i++) {
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ export const routesList: IMyRouteConfig[] = [
|
||||
name: RouteNames.projects,
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
requiresAuth: false,
|
||||
async asyncData() {
|
||||
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ export namespace ApiTool {
|
||||
link += '/' + rec._id
|
||||
}
|
||||
|
||||
// console.log('----------------------- LEGGO QUALCOSA ', link)
|
||||
console.log('----------------------- LEGGO QUALCOSA ', link)
|
||||
|
||||
// Insert/Delete/Update table to the server
|
||||
return SendReq(link, method, rec)
|
||||
|
||||
@@ -324,6 +324,9 @@ namespace Actions {
|
||||
objproj.id_parent = myobj.id_parent
|
||||
objproj.id_main_project = myobj.id_main_project
|
||||
objproj.typeproj = myobj.typeproj
|
||||
objproj.privacyread = myobj.privacyread
|
||||
objproj.privacywrite = myobj.privacywrite
|
||||
objproj.actualphase = myobj.actualphase
|
||||
|
||||
let elemtochange: IProject = null
|
||||
|
||||
|
||||
@@ -386,13 +386,17 @@ export default class ProjList extends Vue {
|
||||
// const descr = this.$t('project.newproj').toString()
|
||||
|
||||
public async addProject(descr) {
|
||||
const projatt = Projects.getters.getRecordById(this.idProjAtt)
|
||||
const myobj: IProject = {
|
||||
descr,
|
||||
id_parent: this.idProjAtt
|
||||
id_parent: this.idProjAtt,
|
||||
privacyread: projatt.privacyread,
|
||||
privacywrite: projatt.privacywrite,
|
||||
actualphase: projatt.actualphase
|
||||
}
|
||||
|
||||
if (this.itemproj === undefined)
|
||||
this.itemproj = Projects.getters.getRecordById(this.idProjAtt)
|
||||
this.itemproj = projatt
|
||||
|
||||
if (this.isRootProject) {
|
||||
myobj.typeproj = TypeProj.TYPE_PROJECT
|
||||
@@ -409,6 +413,7 @@ export default class ProjList extends Vue {
|
||||
return
|
||||
}
|
||||
|
||||
console.log('Nuovo PROJ', myobj)
|
||||
return await Projects.actions.dbInsert({ myobj, atfirst: false })
|
||||
}
|
||||
|
||||
@@ -418,7 +423,7 @@ export default class ProjList extends Vue {
|
||||
this.itemselproj = Projects.getters.getRecordById(this.idsel)
|
||||
if ((this.itemselproj === undefined || this.itemselproj === null))
|
||||
this.whatisSel = tools.WHAT_NOTHING
|
||||
console.log('readonly = true')
|
||||
// console.log('readonly = true')
|
||||
this.readonly = true
|
||||
}
|
||||
public setitemsel(item: ITodo) {
|
||||
@@ -439,7 +444,7 @@ export default class ProjList extends Vue {
|
||||
}
|
||||
|
||||
public deselectAllRowstodo(item: ITodo, check, onlythis: boolean = false) {
|
||||
console.log('PROJ-LIST deselectAllRowstodo : ', item)
|
||||
// console.log('PROJ-LIST deselectAllRowstodo : ', item)
|
||||
|
||||
// return false
|
||||
|
||||
@@ -469,11 +474,11 @@ export default class ProjList extends Vue {
|
||||
}
|
||||
|
||||
public deselectAllRowsproj(item: IProject, check, onlythis: boolean = false) {
|
||||
console.log('deselectAllRowsproj: ', item)
|
||||
// console.log('deselectAllRowsproj: ', item)
|
||||
|
||||
if (!!item && check) {
|
||||
// This is the new selected
|
||||
console.log('readonly = false')
|
||||
// console.log('readonly = false')
|
||||
this.setidsel(item._id)
|
||||
this.readonly = false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
:horizontal="isHorizontal"
|
||||
separator-class="bg-deep-orange"
|
||||
:style="myStyle"
|
||||
:limits="[50, 100]"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user