Skip to content
Snippets Groups Projects
Commit d2ac4b8e authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12982 TIME 0:30 save visa in signatureBook + notes

parent c31860f6
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@
<mat-icon fontSet="far" fontIcon="fa-paper-plane fa-2x"></mat-icon>
</button>
</mat-form-field>
<div style="overflow: auto;max-height: 75px;">
<div style="overflow: auto;max-height: 75px;margin-top: -15px;margin-bottom: 10px;">
<ng-container *ngFor="let entity of entities | sortBy: 'entity_label';let i=index;">
<span *ngIf="entitiesRestriction.indexOf(entity.id) > -1" class="label label-default noteRestriction"
(click)="removeEntityRestriction(entitiesRestriction.indexOf(entity.id), i)"
......
......@@ -95,6 +95,12 @@
<div *ngIf="headerTab == 'visaCircuit'" class="contentShow" style="width:98%;overflow-x: hidden;">
<app-visa-workflow #appVisaWorkflow [resId]="resId"
[adminMode]="privilegeService.hasCurrentUserPrivilege('config_visa_workflow')"></app-visa-workflow>
<div style="position: sticky;bottom: 0px;text-align:right;">
<button mat-fab [title]="lang.saveModifications" *ngIf="appVisaWorkflow !== undefined && appVisaWorkflow.isModified()" (click)="saveVisaWorkflow()"
color="accent">
<mat-icon style="height:auto;font-size:20px;" class="fas fa-check"></mat-icon>
</button>
</div>
</div>
<div *ngIf="headerTab == 'history'" class="contentShow" style="width:98%;">
<app-history-list #appHistoryList [resId]="resId"></app-history-list>
......
......@@ -510,7 +510,7 @@ img.panelSelectedThumbnail,img:hover.panelSelectedThumbnail{
display: block;
width: 100%;
height:93vh;
white-space: nowrap;
// white-space: nowrap;
overflow: hidden;
background-color: #fbfbfb;
}
......
......@@ -11,6 +11,7 @@ import { MatDialogRef, MatDialog } from '@angular/material';
import { AttachmentCreateComponent } from './attachments/attachment-create/attachment-create.component';
import { FunctionsService } from '../service/functions.service';
import { AttachmentPageComponent } from './attachments/attachments-page/attachment-page.component';
import { VisaWorkflowComponent } from './visa/visa-workflow.component';
declare function lockDocument(resId: number) : void;
declare function unlockDocument(resId: number) : void;
......@@ -98,6 +99,8 @@ export class SignatureBookComponent implements OnInit {
}
];
@ViewChild('appVisaWorkflow', { static: false }) appVisaWorkflow: VisaWorkflowComponent;
constructor(
public http: HttpClient,
private route: ActivatedRoute,
......@@ -533,4 +536,8 @@ export class SignatureBookComponent implements OnInit {
}
}
saveVisaWorkflow() {
this.appVisaWorkflow.saveVisaWorkflow();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment