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 { 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;
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user