mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-11 09:51:53 +00:00
QFIX: Region filter in admin panel (#8646)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
c41ee6383e
commit
cf65de4725
@ -80,6 +80,7 @@
|
|||||||
let showDeleted: boolean = false
|
let showDeleted: boolean = false
|
||||||
let showOther: boolean = true
|
let showOther: boolean = true
|
||||||
let showGrAttempts: boolean = true
|
let showGrAttempts: boolean = true
|
||||||
|
let showSelectedRegionOnly: boolean = false
|
||||||
|
|
||||||
$: sortedWorkspaces = workspaces
|
$: sortedWorkspaces = workspaces
|
||||||
.filter(
|
.filter(
|
||||||
@ -88,6 +89,7 @@
|
|||||||
(it.url?.includes(search) ?? false) ||
|
(it.url?.includes(search) ?? false) ||
|
||||||
it.uuid?.includes(search) ||
|
it.uuid?.includes(search) ||
|
||||||
it.createdBy?.includes(search)) &&
|
it.createdBy?.includes(search)) &&
|
||||||
|
(showSelectedRegionOnly ? it.region === selectedRegionId : true) &&
|
||||||
((showActive && isActiveMode(it.mode)) ||
|
((showActive && isActiveMode(it.mode)) ||
|
||||||
(showArchived && isArchivingMode(it.mode)) ||
|
(showArchived && isArchivingMode(it.mode)) ||
|
||||||
(showDeleted && isDeletingMode(it.mode)) ||
|
(showDeleted && isDeletingMode(it.mode)) ||
|
||||||
@ -180,9 +182,11 @@
|
|||||||
const dayRanges = {
|
const dayRanges = {
|
||||||
Today: [-1, 1],
|
Today: [-1, 1],
|
||||||
Week: [1, 7],
|
Week: [1, 7],
|
||||||
Weeks: [7, 30],
|
Weeks: [7, 14],
|
||||||
Month: [30, 90],
|
Month: [14, 30],
|
||||||
Months: [90, 180],
|
Months1: [30, 60],
|
||||||
|
Months2: [60, 90],
|
||||||
|
Months3: [90, 180],
|
||||||
'Six Month': [180, 270],
|
'Six Month': [180, 270],
|
||||||
'Nine Months': [270, 365],
|
'Nine Months': [270, 365],
|
||||||
Years: [365, 10000000]
|
Years: [365, 10000000]
|
||||||
@ -291,6 +295,10 @@
|
|||||||
<span class="mr-2">Show attempts >=0 workspaces:</span>
|
<span class="mr-2">Show attempts >=0 workspaces:</span>
|
||||||
<CheckBox bind:checked={showGrAttempts} />
|
<CheckBox bind:checked={showGrAttempts} />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex-row-center">
|
||||||
|
<span class="mr-2">Show selected region only:</span>
|
||||||
|
<CheckBox bind:checked={showSelectedRegionOnly} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fs-title p-3 flex-row-center">
|
<div class="fs-title p-3 flex-row-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user