mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ADF-4471] TaskCloud - disable editable fields when the task is unclaimed (#4680)
* [ADF-4471] TaskCloud - task header disabled when the task is unclaimed * [ADF-4471] - fix unit test * [ADF-4471] - pr changes * [ADF-4471] - add return type
This commit is contained in:
committed by
Maurizio Vitale
parent
d1bc5a608a
commit
4a363c731b
@@ -230,14 +230,18 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy {
|
||||
return !!this.taskDetails.assignee ? true : false;
|
||||
}
|
||||
|
||||
isTaskValid() {
|
||||
return (this.appName || this.appName === '') && this.taskId;
|
||||
isTaskValid(): boolean {
|
||||
return (this.appName || this.appName === '') && !!this.taskId;
|
||||
}
|
||||
|
||||
isTaskAssigned() {
|
||||
isTaskAssigned(): boolean {
|
||||
return this.taskDetails.assignee !== undefined;
|
||||
}
|
||||
|
||||
isTaskEditable(): boolean {
|
||||
return this.taskCloudService.isTaskEditable(this.taskDetails);
|
||||
}
|
||||
|
||||
private isValidSelection(filteredProperties: string[], cardItem: CardViewBaseItemModel): boolean {
|
||||
return filteredProperties ? filteredProperties.indexOf(cardItem.key) >= 0 : true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user