Replace assets dir

This commit is contained in:
Matteo Gheza 2021-12-24 18:07:24 +01:00
parent 602cd0346d
commit 36f8dac2e2
3 changed files with 4 additions and 5 deletions

View File

@ -40,7 +40,6 @@
"builder": "@angular-devkit/build-angular:browser",
"options": {
"baseHref": "./",
"deployUrl": "./",
"outputPath": "../backend/dist-frontend",
"index": "src/index.html",
"main": "src/main.ts",

View File

@ -1 +1 @@
<img class="owner_image" alt="VVF" src="assets/img/owner.png">
<img class="owner_image" alt="VVF" src="./assets/img/owner.png">

View File

@ -14,8 +14,8 @@
<tbody id="table_body">
<tr *ngFor="let row of data">
<td>
<img alt="red helmet" src="/assets/img/red_helmet.png" width="20px" *ngIf="row.chief">
<img alt="red helmet" src="/assets/img/black_helmet.png" width="20px" *ngIf="!row.chief">
<img alt="red helmet" src="./assets/img/red_helmet.png" width="20px" *ngIf="row.chief">
<img alt="red helmet" src="./assets/img/black_helmet.png" width="20px" *ngIf="!row.chief">
{{ row.name }}
</td>
<td (click)="changeAvailability.emit({user: row.id, newState: row.available ? 0 : 1})">
@ -23,7 +23,7 @@
<i class="fa fa-times" style="color:red" *ngIf="!row.available"></i>
</td>
<td>
<img alt="driver" src="/assets/img/wheel.png" width="20px" *ngIf="row.driver">
<img alt="driver" src="./assets/img/wheel.png" width="20px" *ngIf="row.driver">
</td>
<td>
<a href="tel:{{row.phone_number}}"><i class="fa fa-phone"></i></a>