feat: system privacy component

This commit is contained in:
Spectralitree
2021-12-11 18:41:21 +01:00
parent 9e62439dca
commit c93df9b144
3 changed files with 54 additions and 5 deletions

View File

@@ -3,10 +3,12 @@
import { navigate, useLocation } from "svelte-navigator";
import { currentUser, loggedIn } from '../stores';
import PrivateSystem from '../lib/system/System.svelte';
import System from '../lib/system/System.svelte';
import PKAPI from '../api';
import type Sys from '../api/system';
let isPublic = false;
// get the state from the navigator so that we know which tab to start on
let location = useLocation();
let tabPane = $location.state && $location.state.tab;
@@ -69,7 +71,7 @@
<TabContent class="mt-3">
<TabPane tabId="system" tab="System" active={tabPane === "system"}>
<Card style="border-radius: 0; border: none;">
<PrivateSystem bind:user={user}/>
<System bind:user={user} bind:isPublic={isPublic} />
</Card>
</TabPane>
<TabPane tabId="members" tab="Members" active={tabPane === "members"}>