isFixed implemented

main
Manuel Tauber 2024-02-12 21:24:02 +01:00
parent 3ab0712d23
commit 7fc16dc967
2 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}
</style>