Verified Commit 95e4bed4 authored by Alex ORLUC's avatar Alex ORLUC

FIX #11292 TIME 0:15 add icon header

parent c5df714e
......@@ -136,7 +136,7 @@ export class FolderDocumentListComponent implements OnInit {
'label': data.folder.label
};
this.headerService.setHeader('Dossier : ' + this.folderInfo.label);
this.headerService.setHeader(this.folderInfo.label, '', 'fa fa-folder-open');
});
this.basketUrl = '../../rest/folders/' + params['folderId'] + '/resources';
this.filtersListService.filterMode = false;
......
......@@ -2,5 +2,5 @@
<button *ngIf="!snavLeft.opened" mat-icon-button (click)="snavLeft.open()" style="font-size:20px;">
<mat-icon class="fa fa-stream"></mat-icon>
</button>
{{headerService.headerMessage}} <span class="admin-toolbar-title-small">{{headerService.subHeaderMessage}}</span>
<i *ngIf="headerService.headerMessageIcon !== ''" class="{{headerService.headerMessageIcon}}"></i> {{headerService.headerMessage}} <span class="admin-toolbar-title-small">{{headerService.subHeaderMessage}}</span>
</div>
\ No newline at end of file
......@@ -184,7 +184,7 @@ export class BasketListComponent implements OnInit {
this.allResInBasket = data.allResources;
this.currentBasketInfo.basket_id = data.basket_id;
this.defaultAction = data.defaultAction;
this.headerService.setHeader(data.basketLabel);
this.headerService.setHeader(data.basketLabel, '', 'fa fa-inbox');
return data.resources;
}),
catchError((err: any) => {
......
......@@ -6,6 +6,7 @@ import { of } from 'rxjs';
@Injectable()
export class HeaderService {
headerMessageIcon: string = "";
headerMessage: string = "";
subHeaderMessage: string = "";
user: any = { firstname: "", lastname: "" };
......@@ -102,8 +103,9 @@ export class HeaderService {
);
}
setHeader(maintTitle: string, subTitle: any = '') {
setHeader(maintTitle: string, subTitle: any = '', icon = '') {
this.headerMessage = maintTitle;
this.subHeaderMessage = subTitle;
this.headerMessageIcon = icon;
}
}
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