fix(dashboard): avoid full page reloads in links
This commit is contained in:
parent
b9a7b08281
commit
7f31ab36c5
@ -24,7 +24,7 @@ import { get } from 'svelte/store';
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<Navbar color="light" light expand="lg" class="mb-4">
|
<Navbar color="light" light expand="lg" class="mb-4">
|
||||||
<NavbarBrand>PluralKit</NavbarBrand>
|
<Link to="/" class="navbar-brand"><NavbarBrand tabindex={-1} class="m-0">PluralKit</NavbarBrand></Link>
|
||||||
<NavbarToggler on:click={toggle}></NavbarToggler>
|
<NavbarToggler on:click={toggle}></NavbarToggler>
|
||||||
<Collapse {isOpen} navbar expand="lg">
|
<Collapse {isOpen} navbar expand="lg">
|
||||||
<Nav class="ms-auto" navbar>
|
<Nav class="ms-auto" navbar>
|
||||||
@ -48,10 +48,10 @@ import { get } from 'svelte/store';
|
|||||||
</Dropdown>
|
</Dropdown>
|
||||||
{/if}
|
{/if}
|
||||||
<NavItem>
|
<NavItem>
|
||||||
<NavLink href="/settings">Settings</NavLink>
|
<Link to="/settings" class="nav-link">Settings</Link>
|
||||||
</NavItem>
|
</NavItem>
|
||||||
<NavItem>
|
<NavItem>
|
||||||
<NavLink href="/profile">Public</NavLink>
|
<Link to="/profile" class="nav-link">Public</Link>
|
||||||
</NavItem>
|
</NavItem>
|
||||||
</Nav>
|
</Nav>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Card, CardHeader, CardBody, CardTitle, Row, Col, Button, Spinner } from 'sveltestrap';
|
import { Card, CardHeader, CardBody, CardTitle, Row, Col, Button, Spinner } from 'sveltestrap';
|
||||||
|
import {Link} from 'svelte-navigator';
|
||||||
import FaUserLock from 'svelte-icons/fa/FaUserLock.svelte';
|
import FaUserLock from 'svelte-icons/fa/FaUserLock.svelte';
|
||||||
import PrivacyEdit from './PrivacyEdit.svelte';
|
import PrivacyEdit from './PrivacyEdit.svelte';
|
||||||
|
|
||||||
@ -42,8 +43,8 @@
|
|||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Button style="flex: 0" color="primary" on:click={() => editMode = true}>Edit</Button>
|
<Button style="flex: 0" color="primary" on:click={() => editMode = true}>Edit</Button>
|
||||||
<Button style="flex: 0" color="secondary" on:click={() => window.location.href = window.location.origin+"/dash/bulk-member-privacy"}>Bulk member privacy</Button>
|
<Link to="/dash/bulk-member-privacy"><Button style="flex: 0" color="secondary">Bulk member privacy</Button></Link>
|
||||||
<Button style="flex: 0" color="secondary" on:click={() => window.location.href = window.location.origin+"/dash/bulk-group-privacy"}>Bulk group privacy</Button>
|
<Link to="/dash/bulk-group-privacy"><Button style="flex: 0" color="secondary">Bulk group privacy</Button></Link>
|
||||||
{/if}
|
{/if}
|
||||||
</CardBody>
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
Loading…
Reference in New Issue
Block a user