Skip to content
Snippets Groups Projects
Commit 57fcadaf authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

remove useless <br> + update Resource property initialization

parent fa979bfe
Branches
Tags
1 merge request!1version 1.0.0
Pipeline #
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
<span class="empty-property">Non renseigné</span> <span class="empty-property">Non renseigné</span>
</ng-template> </ng-template>
</div> </div>
<br>
<p> <p>
<span class="has-text-weight-bold">Requêtable: </span> <span class="has-text-weight-bold">Requêtable: </span>
...@@ -76,7 +75,6 @@ ...@@ -76,7 +75,6 @@
<span class="empty-property">Non renseigné</span> <span class="empty-property">Non renseigné</span>
</ng-template> </ng-template>
</div> </div>
<br>
<div *ngIf="resource.messageWarning"> <div *ngIf="resource.messageWarning">
<span class="has-text-weight-bold">Message d'alerte: </span> <span class="has-text-weight-bold">Message d'alerte: </span>
......
...@@ -42,9 +42,7 @@ export class ResourceFormComponent implements OnInit { ...@@ -42,9 +42,7 @@ export class ResourceFormComponent implements OnInit {
switchMap((paramMap: ParamMap) => this._resourceService.findById(paramMap.get('id')))) switchMap((paramMap: ParamMap) => this._resourceService.findById(paramMap.get('id'))))
.subscribe((resource: Resource) => { .subscribe((resource: Resource) => {
this.resource = resource; this.resource = resource;
this.initForm(); this.initForm();
}); });
} }
......
...@@ -28,7 +28,7 @@ export class Resource { ...@@ -28,7 +28,7 @@ export class Resource {
this.isStandard = resource.isStandard; this.isStandard = resource.isStandard;
this.parametersUrl = resource.parametersUrl; this.parametersUrl = resource.parametersUrl;
this.messageWarning = resource.messageWarning; this.messageWarning = resource.messageWarning;
this.resourceFormats = resource.resourceFormats; this.resourceFormats = resource.resourceFormats ? resource.resourceFormats : [];
} else { } else {
this.name = ''; this.name = '';
this.acronym = ''; this.acronym = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment