1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00

added custom value to set filter on top or bottom

This commit is contained in:
Adolfo Gómez García 2020-08-08 20:14:32 +02:00
parent 129238f3e4
commit 8b18f0bb88
3 changed files with 5 additions and 3 deletions

View File

@ -70,7 +70,6 @@ export class ServiceComponent implements OnInit {
if (len >= 16) {
klass.push('small-' + len.toString());
}
console.log(this.service.visual_name, len, klass);
return klass;
}

View File

@ -1,9 +1,11 @@
<uds-filter (updateEvent)="update($event)" *ngIf="api.config.site_filter_on_top"></uds-filter>
<div class="services-groups">
<mat-accordion>
<uds-services-group *ngFor="let g of group; let i = index" [services]="g.services" [group]="g.group" [expanded]="i==0"></uds-services-group>
</mat-accordion>
</div>
<uds-filter (updateEvent)="update($event)"></uds-filter>
{{ api.config.site_filter_on_top }}
<uds-filter (updateEvent)="update($event)" *ngIf="!api.config.site_filter_on_top"></uds-filter>
<uds-staff-info></uds-staff-info>

View File

@ -49,6 +49,7 @@ export interface UDSConfig {
readonly site_copyright_link: string;
readonly site_logo_name: string;
readonly site_information: string;
readonly site_filter_on_top: boolean;
readonly messages: UDSMessages;
readonly urls: UDSUrls;
}