feat(dashboard): add filtering by banner

This commit is contained in:
Jake Fulmine 2023-08-17 12:04:45 +02:00
parent 30dd95674d
commit 7c7108bd30
2 changed files with 12 additions and 0 deletions

View file

@ -391,6 +391,16 @@ function resetPage() {
</InputGroup>
</Col>
{/if}
<Col xs={12} md={6} lg={4} class="mb-2">
<InputGroup>
<InputGroupText>Banner</InputGroupText>
<Input type="select" bind:value={options.filter.banner} on:change={() => resetPage()}>
<option value="all">All</option>
<option value="include">With banner</option>
<option value="exclude">Without banner</option>
</Input>
</InputGroup>
</Col>
<Col xs={12} md={6} lg={4} class="mb-2">
<InputGroup>
<InputGroupText>Color</InputGroupText>

View file

@ -45,6 +45,7 @@ export interface ListOptions {
avatar_url: "all"|"include"|"exclude",
icon: "all"|"include"|"exclude",
color: "all"|"include"|"exclude",
banner: "all"|"include"|"exclude",
}
// what it says on the tin
@ -112,6 +113,7 @@ export const defaultListOptions: ListOptions = {
avatar_url: 'all',
icon: 'all',
color: 'all',
banner: 'all'
},
sort: 'name',