Skip to content
Snippets Groups Projects
Commit 5b16aefb authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #11961 TIME 0:02 delete status variable

parent 65a297bb
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@
</ion-content>
<ion-footer *ngIf="!loadingImage && currentDoc === 0" class="ion-no-border footer-buttons">
<ion-button [disabled]="this.status === 'CONVERTING'" *ngFor="let action of actionsList" [color]="action.color" shape="round" size="large" fill="outline" (click)="launchEvent(action)">
<ion-button [disabled]="mainDocument.status === 'CONVERTING'" *ngFor="let action of actionsList" [color]="action.color" shape="round" size="large" fill="outline" (click)="launchEvent(action)">
<ion-icon *ngIf="action.logo !== ''" [slot]="'start'" [name]="action.logo"></ion-icon>
<ion-label style="font-size: 13px;">{{action.label | translate}}</ion-label>
</ion-button>
......
......@@ -75,8 +75,6 @@ export class DocumentComponent implements OnInit {
loadingUI: any = false;
status: string;
expandedNote: boolean = true;
hasWorkflowNotes: boolean = false;
currentTool = 'info';
......@@ -321,7 +319,6 @@ export class DocumentComponent implements OnInit {
this.http.get('../rest/documents/' + params['id']).pipe(
tap((data: any) => {
this.mainDocument = data.document;
this.status = this.mainDocument.status;
this.mainDocument.workflow = this.mainDocument.workflow.map((item: any) => {
if (item.note) {
this.hasWorkflowNotes = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment