Skip to content
Snippets Groups Projects
Commit 04151611 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13667 TIME 0:25 fix img url

parent 86aff39f
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@
style="width: 50%;">
<div class="pjList">
<img *ngFor="let attach of attachList" title="{{attach.chrono}} : {{attach.title}}"
src="../../rest/{{attach.type === 'attachment' ? 'attachments' : 'resources'}}/{{attach.res_id}}/thumbnail" />
[src]="'../../rest/' + (attach.type === 'attachment' ? 'attachments' : 'resources') + '/' + attach.res_id + '/thumbnail' | secureUrl | async" />
</div>
</mat-sidenav>
</mat-sidenav-container>
......
......@@ -416,7 +416,7 @@
<mat-icon class="fa fa-times"></mat-icon>
</button>
</mat-form-field>
<img src="../../rest/users/{{user.id}}/signatures/{{signature.id}}/content"
<img [src]="'../../rest/users/' + user.id + '/signatures/' + signature.id + '/content' | secureUrl | async"
alt="Signature" style="width:auto;height:60px;">
</mat-card-content>
</mat-card>
......
......@@ -468,7 +468,7 @@
(
< 2MB) </div> </div> <div class="col-md-2"
*ngIf="signatureModel.size">
<img id="signaturePreview" src="{{signatureModel.base64ForJs}}"
<img id="signaturePreview" [src]="signatureModel.base64ForJs"
alt="Image non valide" style="width: 100%;">
</div>
<div class="col-md-12 form-group" style="margin-top: 10px;">
......@@ -496,7 +496,7 @@
<mat-icon class="fa fa-times"></mat-icon>
</button>
</mat-form-field>
<img src="../../rest/users/{{user.id}}/signatures/{{signature.id}}/content"
<img [src]="'../../rest/users/' + user.id + '/signatures/' + signature.id + '/content' | secureUrl | async"
alt="Signature" style="max-width:100%;height:60px;">
</mat-card-content>
</mat-card>
......
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