mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-1022] Fix components to work on Community environments (#5296)
* [AAE-1022] Fix components to work on Community environments * Remove appName input
This commit is contained in:
committed by
Eugenio Romano
parent
0897d372a6
commit
dead0087f4
@@ -45,7 +45,7 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy, OnChanges {
|
||||
|
||||
/** (Required) The name of the application. */
|
||||
@Input()
|
||||
appName: string;
|
||||
appName: string = '';
|
||||
|
||||
/** (Required) The id of the task. */
|
||||
@Input()
|
||||
@@ -103,7 +103,7 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy, OnChanges {
|
||||
|
||||
ngOnChanges() {
|
||||
this.taskDetails = {};
|
||||
if (this.appName && this.taskId) {
|
||||
if ((this.appName || this.appName === '') && this.taskId) {
|
||||
this.loadTaskDetailsById(this.appName, this.taskId);
|
||||
} else {
|
||||
this.error.emit('App Name and Task Id are mandatory');
|
||||
@@ -301,7 +301,7 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy, OnChanges {
|
||||
}
|
||||
|
||||
isTaskValid(): boolean {
|
||||
return (this.appName) && !!this.taskId;
|
||||
return (this.appName || this.appName === '') && !!this.taskId;
|
||||
}
|
||||
|
||||
isTaskAssigned(): boolean {
|
||||
|
Reference in New Issue
Block a user