[AAE-33907] Adds input for 'Open next task' checkbox

This commit is contained in:
Michael Coune 2025-04-25 08:30:23 +02:00 committed by apuschkin
parent adeb82c137
commit 1c4129aaba
No known key found for this signature in database
GPG Key ID: DCFFF2B2EDEF9F73
2 changed files with 12 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import { ScreenRenderingService } from '../../../services/public-api';
import { MatCardModule } from '@angular/material/card'; import { MatCardModule } from '@angular/material/card';
import { UserTaskCustomUi } from '../../models/screen-cloud.model'; import { UserTaskCustomUi } from '../../models/screen-cloud.model';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { MatCheckboxChange } from '@angular/material/checkbox';
@Component({ @Component({
selector: 'adf-cloud-task-screen', selector: 'adf-cloud-task-screen',
@ -68,6 +69,10 @@ export class TaskScreenCloudComponent implements OnInit {
@Input() @Input()
rootProcessInstanceId: string = ''; rootProcessInstanceId: string = '';
/** Whether the `Open next task` checkbox is checked by default or not. */
@Input()
isNextTaskCheckboxChecked = false;
/** Emitted when the task is saved. */ /** Emitted when the task is saved. */
@Output() @Output()
taskSaved = new EventEmitter(); taskSaved = new EventEmitter();
@ -92,6 +97,10 @@ export class TaskScreenCloudComponent implements OnInit {
@Output() @Output()
unclaimTask = new EventEmitter<any>(); unclaimTask = new EventEmitter<any>();
/** Emitted when the `Open next task` checkbox was toggled. */
@Output()
nextTaskCheckboxCheckedChanged = new EventEmitter<MatCheckboxChange>();
@ViewChild('container', { read: ViewContainerRef, static: true }) @ViewChild('container', { read: ViewContainerRef, static: true })
container: ViewContainerRef; container: ViewContainerRef;

View File

@ -38,12 +38,14 @@
[showCancelButton]="showCancelButton" [showCancelButton]="showCancelButton"
[taskName]="taskDetails.name" [taskName]="taskDetails.name"
[taskId]="taskId" [taskId]="taskId"
(cancelTask)="onCancelClick()" (cancelTask)="onCancelClick()"
(claimTask)="onClaimTask()" (claimTask)="onClaimTask()"
(error)="onError($event)" (error)="onError($event)"
(taskCompleted)="onCompleteTask()" (taskCompleted)="onCompleteTask()"
(taskSaved)="onFormSaved()" (taskSaved)="onFormSaved()"
(unclaimTask)="onUnclaimTask()" (unclaimTask)="onUnclaimTask()"
(nextTaskCheckboxCheckedChanged)="onNextTaskCheckboxCheckedChanged($event)"
/> />
</ng-container> </ng-container>