Commit 9f5bfa15 authored by Romain DELEAU's avatar Romain DELEAU

fix images paths for prod

parent 06f4dce3
......@@ -63,7 +63,7 @@ export class AppComponent {
}
downloadManual(): void {
const manualUrl = '/assets/GuideMakerWeb_v2.0.pdf';
const manualUrl = './assets/GuideMakerWeb_v2.0.pdf';
this.http.get(manualUrl, { responseType: 'blob' }).subscribe((blob: Blob) => {
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
......
......@@ -19,8 +19,8 @@
<div class="piece-form">
<div class="piece-form-title">{{role.intitule ? role.intitule : 'Role '+(i+1)}}</div>
<mat-icon class="piece-form-comment" fontIcon="comment" *ngIf="role.comments.length > 0"></mat-icon>
<img src="../../../assets/background-images/role_opacity0.png" draggable="false" *ngIf="i == 0"/>
<img src="../../../assets/background-images/role2_opacity0.png" draggable="false" *ngIf="i == 1"/>
<img src="./assets/background-images/role_opacity0.png" draggable="false" *ngIf="i == 0"/>
<img src="./assets/background-images/role2_opacity0.png" draggable="false" *ngIf="i == 1"/>
<div class="piece-form-intitule">
<label for="intitule">Intitulé</label>
<input name="intitule" type="text" [(ngModel)]="role.intitule" (change)="editTrace($event,'name')" placeholder="Développeur/euse web"
......
......@@ -27,7 +27,7 @@ export class StepComponent implements OnInit {
displayMenu: string = 'hide';
pieceWidth: number = 400;
urlIcon: string = 'url("../../../assets/background-images/step.png")';
urlIcon: string = 'url("./assets/background-images/step.png")';
constructor(protected pieceDetailsService: PieceDetailsService, public dialog: MatDialog, protected tooltipService: TooltipService) { }
......
......@@ -37,7 +37,7 @@ export class AnnexeTaskComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/annexe.png")';
urlIcon: string = 'url("./assets/background-images/annexe.png")';
antecedent: boolean = false;
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog,
......
......@@ -37,7 +37,7 @@ export class FinalTaskComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/final.png")';
urlIcon: string = 'url("./assets/background-images/final.png")';
antecedent: boolean = false;
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog,
......
......@@ -37,7 +37,7 @@ export class OptionnalTaskComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/optionnal.png")';
urlIcon: string = 'url("./assets/background-images/optionnal.png")';
antecedent: boolean = false;
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog,
......
......@@ -37,7 +37,7 @@ export class RandomEventComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/event.png")';
urlIcon: string = 'url("./assets/background-images/event.png")';
antecedent: boolean = false;
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog,
......
......@@ -28,7 +28,7 @@ export class RepeatTaskComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/repeatTask.png")';
urlIcon: string = 'url("./assets/background-images/repeatTask.png")';
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog) { }
......
......@@ -37,7 +37,7 @@ export class TaskComponent implements OnInit {
@Input() i!: number;
@Input() j!: number;
urlIcon: string = 'url("../../../../assets/background-images/tache.png")';
urlIcon: string = 'url("./assets/background-images/tache.png")';
antecedent: boolean = false;
constructor(protected pieceDetailsService: PieceDetailsService, protected tooltipService: TooltipService, public dialog: MatDialog,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment