mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4471]Reload task header after claim/unclaim (#4875)
* Reload task header
This commit is contained in:
committed by
Eugenio Romano
parent
6cedc59fdf
commit
48097c4d2a
@@ -8,10 +8,12 @@
|
|||||||
[taskId]="taskId"
|
[taskId]="taskId"
|
||||||
(cancelClick)="goBack()"
|
(cancelClick)="goBack()"
|
||||||
(taskCompleted)="onTaskCompleted()"
|
(taskCompleted)="onTaskCompleted()"
|
||||||
|
(taskClaimed)="onTaskClaimed()"
|
||||||
|
(taskUnclaimed)="onTaskUnclaimed()"
|
||||||
(formSaved)="onFormSaved()">
|
(formSaved)="onFormSaved()">
|
||||||
</adf-cloud-task-form>
|
</adf-cloud-task-form>
|
||||||
</div>
|
</div>
|
||||||
<adf-cloud-task-header fxFlex
|
<adf-cloud-task-header #taskHeader fxFlex
|
||||||
[appName]="appName"
|
[appName]="appName"
|
||||||
[taskId]="taskId">
|
[taskId]="taskId">
|
||||||
</adf-cloud-task-header>
|
</adf-cloud-task-header>
|
||||||
|
@@ -15,9 +15,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { NotificationService } from '@alfresco/adf-core';
|
import { NotificationService } from '@alfresco/adf-core';
|
||||||
|
import { TaskHeaderCloudComponent } from '@alfresco/adf-process-services-cloud';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './task-details-cloud-demo.component.html',
|
templateUrl: './task-details-cloud-demo.component.html',
|
||||||
@@ -25,6 +26,9 @@ import { NotificationService } from '@alfresco/adf-core';
|
|||||||
})
|
})
|
||||||
export class TaskDetailsCloudDemoComponent {
|
export class TaskDetailsCloudDemoComponent {
|
||||||
|
|
||||||
|
@ViewChild('taskHeader')
|
||||||
|
taskHeader: TaskHeaderCloudComponent;
|
||||||
|
|
||||||
taskId: string;
|
taskId: string;
|
||||||
appName: string;
|
appName: string;
|
||||||
|
|
||||||
@@ -54,6 +58,14 @@ export class TaskDetailsCloudDemoComponent {
|
|||||||
this.goBack();
|
this.goBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onTaskClaimed() {
|
||||||
|
this.taskHeader.ngOnInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
onTaskUnclaimed() {
|
||||||
|
this.taskHeader.ngOnInit();
|
||||||
|
}
|
||||||
|
|
||||||
onFormContentClicked(resourceId) {
|
onFormContentClicked(resourceId) {
|
||||||
this.router.navigate([`/cloud/${this.appName}/task-details/${this.taskId}/files/${resourceId.nodeId}/view`]);
|
this.router.navigate([`/cloud/${this.appName}/task-details/${this.taskId}/files/${resourceId.nodeId}/view`]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user