mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +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>
|
||||
</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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue