fix admin panel

This commit is contained in:
Wicklow 2023-10-12 15:18:16 +02:00
parent a90b8fddbc
commit f88a9d4650
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
</div> </div>
<ng-select <ng-select
*ngIf="!isAuditLog() || isAuditLogsEnabled"
[(ngModel)]="startDate" [(ngModel)]="startDate"
(ngModelChange)="refresh()" (ngModelChange)="refresh()"
[clearable]="false" [clearable]="false"
@ -30,7 +31,7 @@
<my-select-tags *ngIf="!isAuditLog()" i18n-placeholder placeholder="Filter logs by tags" [(ngModel)]="tagsOneOf" (ngModelChange)="refresh()"></my-select-tags> <my-select-tags *ngIf="!isAuditLog()" i18n-placeholder placeholder="Filter logs by tags" [(ngModel)]="tagsOneOf" (ngModelChange)="refresh()"></my-select-tags>
<my-button i18n-label label="Refresh" icon="refresh" (click)="refresh()"></my-button> <my-button *ngIf="!isAuditLog() || isAuditLogsEnabled" i18n-label label="Refresh" icon="refresh" (click)="refresh()"></my-button>
</div> </div>
<div class="logs"> <div class="logs">

View File

@ -37,7 +37,7 @@ export class LogsComponent implements OnInit {
ngOnInit (): void { ngOnInit (): void {
this.serverConfig = this.serverService.getHTMLConfig() this.serverConfig = this.serverService.getHTMLConfig()
console.log(JSON.stringify(this.serverConfig)) this.isAuditLogsEnabled = this.serverConfig.instance.logs.auditLogs.enabled
this.buildTimeChoices() this.buildTimeChoices()
this.buildLevelChoices() this.buildLevelChoices()