mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dashboard): fix public profile list crashing
This commit is contained in:
parent
39e18704a6
commit
217afee8a0
2 changed files with 14 additions and 8 deletions
|
|
@ -81,13 +81,19 @@ function resetPage() {
|
|||
|
||||
<Card class="mb-3">
|
||||
<CardHeader>
|
||||
<CardTitle class="d-flex justify-content-between align-items-center mb-0">
|
||||
<div>
|
||||
<div class="icon d-inline-block">
|
||||
<FaSearch />
|
||||
</div> Control {pageOptions.type} list
|
||||
</div>
|
||||
<Button color="primary" on:click={() => advanced = !advanced}>Toggle advanced mode</Button>
|
||||
<CardTitle class="mb-0">
|
||||
<Row class="justify-content-between align-items-center ">
|
||||
<Col xs={12} md={8} xl={9}>
|
||||
<div class="icon d-inline-block">
|
||||
<FaSearch />
|
||||
</div> Control {pageOptions.type} list
|
||||
</Col>
|
||||
{#if !pageOptions.isPublic}
|
||||
<Col xs={12} md={4} xl={3} class="mt-2 mt-md-0">
|
||||
<Button class="w-100" color="primary" on:click={() => advanced = !advanced}>Toggle advanced mode</Button>
|
||||
</Col>
|
||||
{/if}
|
||||
</Row>
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
<Alert color="info" aria-hidden>You are currently <b>viewing</b> a system.</Alert>
|
||||
<TabContent class="mt-3" on:tab={(e) => navigateTo(e.detail, listView)}>
|
||||
<TabPane tabId="system" tab="System" active={tabPane === "system"}>
|
||||
<SystemMain bind:user={user} isPublic={false} />
|
||||
<SystemMain bind:user={user} isPublic={true} />
|
||||
</TabPane>
|
||||
<TabPane tabId="members" tab="Members" active={tabPane === "members"}>
|
||||
<List on:viewChange={(e) => navigateTo("members", e.detail)} bind:otherList={groupList} bind:lists={memberList} bind:pageOptions={memberListPageOptions} bind:options={memberListOptions} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue