[AAE-33907] added showNextTaskCheckbox property and moved condition

This commit is contained in:
Michael Coune 2025-04-25 11:45:34 +02:00 committed by apuschkin
parent fcd79d7e9e
commit a71ba23704
No known key found for this signature in database
GPG Key ID: DCFFF2B2EDEF9F73
2 changed files with 6 additions and 1 deletions

View File

@ -73,6 +73,10 @@ export class TaskScreenCloudComponent implements OnInit {
@Input() @Input()
isNextTaskCheckboxChecked = false; isNextTaskCheckboxChecked = false;
/** Toggle rendering of the `Open next task` checkbox. */
@Input()
showNextTaskCheckbox = false;
/** Emitted when the task is saved. */ /** Emitted when the task is saved. */
@Output() @Output()
taskSaved = new EventEmitter(); taskSaved = new EventEmitter();

View File

@ -38,7 +38,8 @@
[showCancelButton]="showCancelButton" [showCancelButton]="showCancelButton"
[taskName]="taskDetails.name" [taskName]="taskDetails.name"
[taskId]="taskId" [taskId]="taskId"
[isNextTaskCheckboxChecked]="isNextTaskCheckboxChecked && canCompleteTask()" [showNextTaskCheckbox]="showNextTaskCheckbox && canCompleteTask()"
[isNextTaskCheckboxChecked]="isNextTaskCheckboxChecked"
(cancelTask)="onCancelClick()" (cancelTask)="onCancelClick()"
(claimTask)="onClaimTask()" (claimTask)="onClaimTask()"