Removed forced default behaviour for date range
This commit is contained in:
parent
e97c0d15b0
commit
5c29b57c0f
|
@ -38,14 +38,6 @@
|
||||||
{ value: "5-m", label: "Past 5 mins" },
|
{ value: "5-m", label: "Past 5 mins" },
|
||||||
]
|
]
|
||||||
|
|
||||||
$: parsedOptions = timeOptions.filter(ele => {
|
|
||||||
return !cloudHosted || (licensePlan?.type === "free" && "1-w" !== ele.value)
|
|
||||||
})
|
|
||||||
|
|
||||||
$: if (parsedOptions.length && timeRange === null) {
|
|
||||||
timeRange = parsedOptions[0].value
|
|
||||||
}
|
|
||||||
|
|
||||||
const statusOptions = [
|
const statusOptions = [
|
||||||
{ value: SUCCESS, label: "Success" },
|
{ value: SUCCESS, label: "Success" },
|
||||||
{ value: ERROR, label: "Error" },
|
{ value: ERROR, label: "Error" },
|
||||||
|
@ -144,7 +136,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<Select
|
<Select
|
||||||
placeholder={parsedOptions[0]?.label}
|
placeholder="All"
|
||||||
label="Date range"
|
label="Date range"
|
||||||
bind:value={timeRange}
|
bind:value={timeRange}
|
||||||
options={timeOptions}
|
options={timeOptions}
|
||||||
|
|
Loading…
Reference in New Issue