mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-8306] - Managed to disable complete/claim/release buttons on first click (#8166)
* AAE-8306: Managed to disable complete/save/claim buttons on user click * AAE-8306: reverted back save button disable * AAE-8306: Managed to disable unclaim or release button on user click * AAE-8306: Fixed formatting issues * AAE-8306: Fixed formatting issues
This commit is contained in:
@@ -174,6 +174,8 @@ export abstract class FormBaseComponent {
|
||||
}
|
||||
|
||||
if (outcome.id === FormBaseComponent.COMPLETE_OUTCOME_ID) {
|
||||
this.disableSaveButton = true;
|
||||
this.disableCompleteButton = true;
|
||||
this.completeTaskForm();
|
||||
return true;
|
||||
}
|
||||
@@ -201,6 +203,8 @@ export abstract class FormBaseComponent {
|
||||
}
|
||||
|
||||
handleError(err: any): any {
|
||||
this.disableSaveButton = false;
|
||||
this.disableCompleteButton = false;
|
||||
this.error.emit(err);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user