mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-33907] Adds input for 'Open next task' checkbox
This commit is contained in:
parent
adeb82c137
commit
1c4129aaba
@ -21,6 +21,7 @@ import { ScreenRenderingService } from '../../../services/public-api';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { UserTaskCustomUi } from '../../models/screen-cloud.model';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { MatCheckboxChange } from '@angular/material/checkbox';
|
||||
|
||||
@Component({
|
||||
selector: 'adf-cloud-task-screen',
|
||||
@ -68,6 +69,10 @@ export class TaskScreenCloudComponent implements OnInit {
|
||||
@Input()
|
||||
rootProcessInstanceId: string = '';
|
||||
|
||||
/** Whether the `Open next task` checkbox is checked by default or not. */
|
||||
@Input()
|
||||
isNextTaskCheckboxChecked = false;
|
||||
|
||||
/** Emitted when the task is saved. */
|
||||
@Output()
|
||||
taskSaved = new EventEmitter();
|
||||
@ -92,6 +97,10 @@ export class TaskScreenCloudComponent implements OnInit {
|
||||
@Output()
|
||||
unclaimTask = new EventEmitter<any>();
|
||||
|
||||
/** Emitted when the `Open next task` checkbox was toggled. */
|
||||
@Output()
|
||||
nextTaskCheckboxCheckedChanged = new EventEmitter<MatCheckboxChange>();
|
||||
|
||||
@ViewChild('container', { read: ViewContainerRef, static: true })
|
||||
container: ViewContainerRef;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="adf-user-task-cloud-container">
|
||||
<div class="adf-user-task-cloud-container">
|
||||
<div *ngIf="!loading; else loadingTemplate">
|
||||
<ng-container [ngSwitch]="taskType">
|
||||
<ng-container *ngSwitchCase="taskTypeEnum.Form">
|
||||
@ -38,12 +38,14 @@
|
||||
[showCancelButton]="showCancelButton"
|
||||
[taskName]="taskDetails.name"
|
||||
[taskId]="taskId"
|
||||
|
||||
(cancelTask)="onCancelClick()"
|
||||
(claimTask)="onClaimTask()"
|
||||
(error)="onError($event)"
|
||||
(taskCompleted)="onCompleteTask()"
|
||||
(taskSaved)="onFormSaved()"
|
||||
(unclaimTask)="onUnclaimTask()"
|
||||
(nextTaskCheckboxCheckedChanged)="onNextTaskCheckboxCheckedChanged($event)"
|
||||
/>
|
||||
</ng-container>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user