From 7fc16dc9671432981825bd3af39124ec8d484e4a Mon Sep 17 00:00:00 2001 From: Manuel Tauber Date: Mon, 12 Feb 2024 21:24:02 +0100 Subject: [PATCH] isFixed implemented --- frontend/src/app/ntt-gantt/ntt-gantt.component.ts | 10 +++++++--- frontend/src/index.html | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts index d9fd5a3..70f485a 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts @@ -770,9 +770,9 @@ export class NttGanttComponent implements OnInit { */ public queryTaskbarInfo(args: any) { - if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2")) + if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2") && args.data.taskData.isFixed == false) { - // console.log(args.taskbarElement.children[1].style.add); + // console.log(args.taskbarElement.children[1].style.add); args.taskbarElement.children[1].classList.add('e-gantt-milestone-border1'); // console.log(args.taskbarElement.children[1]); // args.taskbarElement.children[1].children[0].classList.add('e-gantt-milestone-border'); @@ -1002,7 +1002,11 @@ export class NttGanttComponent implements OnInit { public actionBegin(args: any) { if(args.requestType == 'taskbarediting'){ if(args.taskBarEditAction == 'MilestoneDrag'){ - if(!args.data.TaskID.includes("D2")){ + if(args.data.TaskID.includes("D2")){ + if(args.data.taskData.isFixed == true ) { + args.cancel = true; + } + }else{ args.cancel = true; } return; diff --git a/frontend/src/index.html b/frontend/src/index.html index f530db0..bbe6410 100644 --- a/frontend/src/index.html +++ b/frontend/src/index.html @@ -33,6 +33,7 @@ /* border-top-width: 1px; */ color: red; background-color: transparent !important; + cursor: not-allowed; } @@ -41,6 +42,7 @@ border-radius: 30%; color: red; background-color: #9e9e9b !important; + cursor: grab; }