fix(dashboard): fix public profile list crashing

This commit is contained in:
Jake Fulmine 2022-11-27 19:49:07 +01:00
parent 39e18704a6
commit 217afee8a0
2 changed files with 14 additions and 8 deletions

View File

@ -81,13 +81,19 @@ function resetPage() {
<Card class="mb-3"> <Card class="mb-3">
<CardHeader> <CardHeader>
<CardTitle class="d-flex justify-content-between align-items-center mb-0"> <CardTitle class="mb-0">
<div> <Row class="justify-content-between align-items-center ">
<Col xs={12} md={8} xl={9}>
<div class="icon d-inline-block"> <div class="icon d-inline-block">
<FaSearch /> <FaSearch />
</div> Control {pageOptions.type} list </div> Control {pageOptions.type} list
</div> </Col>
<Button color="primary" on:click={() => advanced = !advanced}>Toggle advanced mode</Button> {#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> </CardTitle>
</CardHeader> </CardHeader>
<CardBody> <CardBody>

View File

@ -107,7 +107,7 @@
<Alert color="info" aria-hidden>You are currently <b>viewing</b> a system.</Alert> <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)}> <TabContent class="mt-3" on:tab={(e) => navigateTo(e.detail, listView)}>
<TabPane tabId="system" tab="System" active={tabPane === "system"}> <TabPane tabId="system" tab="System" active={tabPane === "system"}>
<SystemMain bind:user={user} isPublic={false} /> <SystemMain bind:user={user} isPublic={true} />
</TabPane> </TabPane>
<TabPane tabId="members" tab="Members" active={tabPane === "members"}> <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} /> <List on:viewChange={(e) => navigateTo("members", e.detail)} bind:otherList={groupList} bind:lists={memberList} bind:pageOptions={memberListPageOptions} bind:options={memberListOptions} />