mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
feat(dashboard): add filtering by banner
This commit is contained in:
parent
30dd95674d
commit
7c7108bd30
2 changed files with 12 additions and 0 deletions
|
|
@ -391,6 +391,16 @@ function resetPage() {
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</Col>
|
</Col>
|
||||||
{/if}
|
{/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">
|
<Col xs={12} md={6} lg={4} class="mb-2">
|
||||||
<InputGroup>
|
<InputGroup>
|
||||||
<InputGroupText>Color</InputGroupText>
|
<InputGroupText>Color</InputGroupText>
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ export interface ListOptions {
|
||||||
avatar_url: "all"|"include"|"exclude",
|
avatar_url: "all"|"include"|"exclude",
|
||||||
icon: "all"|"include"|"exclude",
|
icon: "all"|"include"|"exclude",
|
||||||
color: "all"|"include"|"exclude",
|
color: "all"|"include"|"exclude",
|
||||||
|
banner: "all"|"include"|"exclude",
|
||||||
|
|
||||||
}
|
}
|
||||||
// what it says on the tin
|
// what it says on the tin
|
||||||
|
|
@ -112,6 +113,7 @@ export const defaultListOptions: ListOptions = {
|
||||||
avatar_url: 'all',
|
avatar_url: 'all',
|
||||||
icon: 'all',
|
icon: 'all',
|
||||||
color: 'all',
|
color: 'all',
|
||||||
|
banner: 'all'
|
||||||
|
|
||||||
},
|
},
|
||||||
sort: 'name',
|
sort: 'name',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue