fix datepicker bug
This commit is contained in:
parent
3c639a8e85
commit
5e4c4a9dfd
|
@ -86,7 +86,10 @@
|
||||||
$: userPage = $userPageInfo.page
|
$: userPage = $userPageInfo.page
|
||||||
$: logsPage = $logsPageInfo.page
|
$: logsPage = $logsPageInfo.page
|
||||||
|
|
||||||
$: sortedUsers = sort(enrich($users.data, selectedUsers, "_id"), "email")
|
$: sortedUsers = sort(
|
||||||
|
enrich($users.data || [], selectedUsers, "_id"),
|
||||||
|
"email"
|
||||||
|
)
|
||||||
$: sortedEvents = sort(
|
$: sortedEvents = sort(
|
||||||
enrich(parseEventObject($auditLogs.events), selectedEvents, "id"),
|
enrich(parseEventObject($auditLogs.events), selectedEvents, "id"),
|
||||||
"id"
|
"id"
|
||||||
|
@ -250,8 +253,6 @@
|
||||||
$licensing.goToUpgradePage()
|
$licensing.goToUpgradePage()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="datepicker" />
|
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<Multiselect
|
<Multiselect
|
||||||
|
@ -297,6 +298,7 @@
|
||||||
on:change={e => {
|
on:change={e => {
|
||||||
if (e.detail[0]?.length === 1) {
|
if (e.detail[0]?.length === 1) {
|
||||||
startDate = e.detail[0][0].toISOString()
|
startDate = e.detail[0][0].toISOString()
|
||||||
|
endDate = null
|
||||||
} else if (e.detail[0]?.length > 1) {
|
} else if (e.detail[0]?.length > 1) {
|
||||||
startDate = e.detail[0][0].toISOString()
|
startDate = e.detail[0][0].toISOString()
|
||||||
endDate = e.detail[0][1].toISOString()
|
endDate = e.detail[0][1].toISOString()
|
||||||
|
|
Loading…
Reference in New Issue