mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3473] Show complete button when you can't attach a form (#3695)
* ADF-3473 show complete button * fix isCompletedTask case * fix single run test option
This commit is contained in:
committed by
Eugenio Romano
parent
2deafbbdd7
commit
3c7c3316bf
@@ -57,6 +57,26 @@
|
||||
(complete)="onComplete()"
|
||||
(showAttachForm)="onShowAttachForm()">
|
||||
</adf-task-standalone>
|
||||
|
||||
<mat-card class="adf-message-card" *ngIf="!isTaskStandaloneComponentVisible() && !isCompletedTask()" >
|
||||
<mat-card-content>
|
||||
<div class="adf-no-form-message-container">
|
||||
<div class="adf-no-form-message-list">
|
||||
<div *ngIf="!isCompletedTask()" class="adf-no-form-message">
|
||||
<span id="adf-no-form-message">{{'ADF_TASK_LIST.STANDALONE_TASK.NO_FORM_MESSAGE' | translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions class="adf-no-form-mat-card-actions">
|
||||
<div>
|
||||
<button mat-button id="adf-no-form-complete-button" color="primary" (click)="onComplete()">{{ 'ADF_TASK_LIST.DETAILS.BUTTON.COMPLETE' | translate }}</button>
|
||||
</div>
|
||||
</mat-card-actions>
|
||||
|
||||
</mat-card>
|
||||
|
||||
<adf-attach-form *ngIf="isShowAttachForm()"
|
||||
[taskId]="taskDetails.id"
|
||||
[formKey]="taskDetails.formKey"
|
||||
|
@@ -42,6 +42,7 @@ export class TaskStandaloneComponent {
|
||||
@Input()
|
||||
hasCompletePermission: boolean = true;
|
||||
|
||||
// TODO: rename all with show prefix
|
||||
/** Toggles rendering of the `Cancel` button. */
|
||||
@Input()
|
||||
hideCancelButton: boolean = true;
|
||||
|
Reference in New Issue
Block a user