mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4454] Map upload field to UploadCloudWidget in task cloud form (#4672)
* [ADF-4454] Moved upload widget maping to task form * Update community-task-details-cloud.component.ts
This commit is contained in:
committed by
Eugenio Romano
parent
0c7581acba
commit
7016dabb6c
@@ -17,8 +17,7 @@
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { UploadCloudWidgetComponent } from '@alfresco/adf-process-services-cloud';
|
||||
import { NotificationService, FormRenderingService } from '@alfresco/adf-core';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
templateUrl: './community-task-details-cloud.component.html',
|
||||
@@ -32,7 +31,6 @@ export class CommunityTaskDetailsCloudDemoComponent {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private formRenderingService: FormRenderingService,
|
||||
private notificationService: NotificationService
|
||||
) {
|
||||
this.route.params.subscribe((params) => {
|
||||
@@ -41,8 +39,6 @@ export class CommunityTaskDetailsCloudDemoComponent {
|
||||
this.route.parent.params.subscribe((params) => {
|
||||
this.appName = params.appName;
|
||||
});
|
||||
this.formRenderingService.setComponentTypeResolver('upload', () => UploadCloudWidgetComponent, true);
|
||||
|
||||
}
|
||||
|
||||
isTaskValid(): boolean {
|
||||
|
@@ -17,8 +17,7 @@
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { UploadCloudWidgetComponent } from '@alfresco/adf-process-services-cloud';
|
||||
import { NotificationService, FormRenderingService } from '@alfresco/adf-core';
|
||||
import { NotificationService } from '@alfresco/adf-core';
|
||||
|
||||
@Component({
|
||||
templateUrl: './task-details-cloud-demo.component.html',
|
||||
@@ -32,7 +31,6 @@ export class TaskDetailsCloudDemoComponent {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private formRenderingService: FormRenderingService,
|
||||
private notificationService: NotificationService
|
||||
) {
|
||||
this.route.params.subscribe((params) => {
|
||||
@@ -41,7 +39,6 @@ export class TaskDetailsCloudDemoComponent {
|
||||
this.route.parent.params.subscribe((params) => {
|
||||
this.appName = params.appName;
|
||||
});
|
||||
this.formRenderingService.setComponentTypeResolver('upload', () => UploadCloudWidgetComponent, true);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user