Skip to content
Snippets Groups Projects
Commit 71f6f758 authored by Dante Aléo's avatar Dante Aléo :pouting_cat:
Browse files

Merge branch 'fix-images' into 'development'

fix machine images

See merge request !98
parents 32ea7801 3844b6eb
No related branches found
No related tags found
1 merge request!98fix machine images
......@@ -20,7 +20,7 @@
<div class="row justify-content-center">
<div class="col-sm-5 col-md-5 pt-4" *ngFor="let machine of machines; let i = index">
<div class="container photos-btn">
<img src='{{machine.imagePath}}' alt="Avatar" class="img">
<img src="assets/images/{{machine.imagePath}}" alt="Avatar" class="img">
<h3> {{machine.serial_number}} </h3>
<button class="btn"(click)="changeButton(i)">Mais Informações</button>
......
......@@ -42,7 +42,7 @@ export class EditMachineComponent implements OnInit {
state: data[i].state,
image: new File([''], "empty"),
imagePath: "assets/"+data[i].file,
imagePath: data[i].file,
id: data[i].id,
date_last_maintenance: {
......
......@@ -9,7 +9,7 @@
<div class="row justify-content-center">
<div class="col-md-5 pt-4" *ngFor="let machine of machines; let i = index">
<div class="container photos-btn">
<img src='{{machine.imagePath}}' alt="Avatar" class="img"/>
<img src="assets/images/{{machine.imagePath}}" alt="Avatar" class="img"/>
<h3> {{machine.serial_number}} </h3>
......
......@@ -39,7 +39,7 @@ export class EventsComponent implements OnInit {
state: data[i].state,
image: new File([''], "empty"),
imagePath: "assets/"+data[i].file,
imagePath: data[i].file,
id: data[i].id,
date_last_maintenance: {
......
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