fix(ui): Replace filter value "nothing" by "none" (#1202)

This commit is contained in:
TwiN
2025-08-14 16:44:17 -04:00
committed by GitHub
parent 440b732c71
commit 6c28de6950
5 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
<Select
v-model="filterBy"
:options="filterOptions"
placeholder="Nothing"
placeholder="None"
class="flex-1 sm:w-[140px] md:w-[160px]"
@update:model-value="handleFilterChange"
/>
@@ -47,11 +47,11 @@ import { Input } from '@/components/ui/input'
import { Select } from '@/components/ui/select'
const searchQuery = ref('')
const filterBy = ref(localStorage.getItem('gatus:filter-by') || (typeof window !== 'undefined' && window.config?.defaultFilterBy) || 'nothing')
const filterBy = ref(localStorage.getItem('gatus:filter-by') || (typeof window !== 'undefined' && window.config?.defaultFilterBy) || 'none')
const sortBy = ref(localStorage.getItem('gatus:sort-by') || (typeof window !== 'undefined' && window.config?.defaultSortBy) || 'name')
const filterOptions = [
{ label: 'Nothing', value: 'nothing' },
{ label: 'None', value: 'none' },
{ label: 'Failing', value: 'failing' },
{ label: 'Unstable', value: 'unstable' }
]