QFIX: Region filter in admin panel (#8646)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-04-21 12:30:40 +07:00 committed by GitHub
parent c41ee6383e
commit cf65de4725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,7 @@
let showDeleted: boolean = false
let showOther: boolean = true
let showGrAttempts: boolean = true
let showSelectedRegionOnly: boolean = false
$: sortedWorkspaces = workspaces
.filter(
@ -88,6 +89,7 @@
(it.url?.includes(search) ?? false) ||
it.uuid?.includes(search) ||
it.createdBy?.includes(search)) &&
(showSelectedRegionOnly ? it.region === selectedRegionId : true) &&
((showActive && isActiveMode(it.mode)) ||
(showArchived && isArchivingMode(it.mode)) ||
(showDeleted && isDeletingMode(it.mode)) ||
@ -180,9 +182,11 @@
const dayRanges = {
Today: [-1, 1],
Week: [1, 7],
Weeks: [7, 30],
Month: [30, 90],
Months: [90, 180],
Weeks: [7, 14],
Month: [14, 30],
Months1: [30, 60],
Months2: [60, 90],
Months3: [90, 180],
'Six Month': [180, 270],
'Nine Months': [270, 365],
Years: [365, 10000000]
@ -291,6 +295,10 @@
<span class="mr-2">Show attempts >=0 workspaces:</span>
<CheckBox bind:checked={showGrAttempts} />
</div>
<div class="flex-row-center">
<span class="mr-2">Show selected region only:</span>
<CheckBox bind:checked={showSelectedRegionOnly} />
</div>
</div>
<div class="fs-title p-3 flex-row-center">