extended logs
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
<p-dropdown [options]="routerOptions" [(ngModel)]="routerId" optionLabel="label" optionValue="value"></p-dropdown>
|
||||
</span>
|
||||
|
||||
<span class="form-field">
|
||||
<label>{{ 'files.dateLabel' | translate }}</label>
|
||||
<input pInputText type="date" [(ngModel)]="createdOn" [placeholder]="'files.datePlaceholder' | translate" />
|
||||
</span>
|
||||
|
||||
<span class="form-field">
|
||||
<label>{{ 'files.sortLabel' | translate }}</label>
|
||||
<p-dropdown [options]="sortOptions" [(ngModel)]="sortBy" optionLabel="label" optionValue="value"></p-dropdown>
|
||||
|
||||
@@ -70,6 +70,7 @@ export class FilesPageComponent implements OnInit {
|
||||
search = '';
|
||||
backupType: 'export' | 'binary' | '' = '';
|
||||
routerId: number | null = null;
|
||||
createdOn = '';
|
||||
sortBy = 'created_at';
|
||||
order: 'asc' | 'desc' = 'desc';
|
||||
diffText = '';
|
||||
@@ -187,6 +188,7 @@ export class FilesPageComponent implements OnInit {
|
||||
if (this.search.trim()) params = params.set('search', this.search.trim());
|
||||
if (this.backupType) params = params.set('backup_type', this.backupType);
|
||||
if (this.routerId !== null) params = params.set('router_id', String(this.routerId));
|
||||
if (this.createdOn) params = params.set('created_on', this.createdOn);
|
||||
|
||||
this.api.http.get<BackupFile[]>(`${this.api.baseUrl}/backups`, { params }).subscribe({
|
||||
next: (files) => {
|
||||
@@ -209,6 +211,7 @@ export class FilesPageComponent implements OnInit {
|
||||
this.search = '';
|
||||
this.backupType = '';
|
||||
this.routerId = null;
|
||||
this.createdOn = '';
|
||||
this.sortBy = 'created_at';
|
||||
this.order = 'desc';
|
||||
this.load();
|
||||
|
||||
@@ -255,6 +255,8 @@
|
||||
"searchPlaceholder": "Search by file or router",
|
||||
"typeLabel": "Type",
|
||||
"routerLabel": "Device",
|
||||
"dateLabel": "Date",
|
||||
"datePlaceholder": "Pick a date",
|
||||
"sortLabel": "Sort by",
|
||||
"orderLabel": "Order",
|
||||
"allTypes": "All types",
|
||||
|
||||
@@ -255,6 +255,8 @@
|
||||
"searchPlaceholder": "Buscar por archivo o router",
|
||||
"typeLabel": "Tipo",
|
||||
"routerLabel": "Dispositivo",
|
||||
"dateLabel": "Fecha",
|
||||
"datePlaceholder": "Selecciona una fecha",
|
||||
"sortLabel": "Ordenar por",
|
||||
"orderLabel": "Orden",
|
||||
"allTypes": "Todos los tipos",
|
||||
|
||||
@@ -255,6 +255,8 @@
|
||||
"searchPlaceholder": "Søk etter fil eller ruter",
|
||||
"typeLabel": "Type",
|
||||
"routerLabel": "Enhet",
|
||||
"dateLabel": "Dato",
|
||||
"datePlaceholder": "Velg dato",
|
||||
"sortLabel": "Sorter etter",
|
||||
"orderLabel": "Rekkefølge",
|
||||
"allTypes": "Alle typer",
|
||||
|
||||
@@ -255,6 +255,8 @@
|
||||
"searchPlaceholder": "Szukaj po pliku lub routerze",
|
||||
"typeLabel": "Typ",
|
||||
"routerLabel": "Urządzenie",
|
||||
"dateLabel": "Data",
|
||||
"datePlaceholder": "Wybierz datę",
|
||||
"sortLabel": "Sortowanie",
|
||||
"orderLabel": "Kolejność",
|
||||
"allTypes": "Wszystkie typy",
|
||||
|
||||
Reference in New Issue
Block a user