2022-08-26 11:45:14 +02:00
|
|
|
<script>
|
|
|
|
import { getContext } from 'svelte'
|
|
|
|
import { init } from './utils.js'
|
|
|
|
import { Card, CardHeader, CardTitle } from 'sveltestrap'
|
|
|
|
|
|
|
|
import PlotSettings from './config/PlotSettings.svelte'
|
|
|
|
import AdminSettings from './config/AdminSettings.svelte'
|
|
|
|
|
|
|
|
const { query: initq } = init()
|
|
|
|
|
|
|
|
const ccconfig = getContext('cc-config')
|
|
|
|
|
2023-03-06 11:44:38 +01:00
|
|
|
export let isAdmin
|
2022-08-26 11:45:14 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2023-03-06 11:44:38 +01:00
|
|
|
{#if isAdmin == true}
|
2022-08-26 11:45:14 +02:00
|
|
|
<Card style="margin-bottom: 1.5em;">
|
|
|
|
<CardHeader>
|
|
|
|
<CardTitle class="mb-1">Admin Options</CardTitle>
|
|
|
|
</CardHeader>
|
|
|
|
<AdminSettings/>
|
|
|
|
</Card>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<Card>
|
|
|
|
<CardHeader>
|
|
|
|
<CardTitle class="mb-1">Plotting Options</CardTitle>
|
|
|
|
</CardHeader>
|
|
|
|
<PlotSettings config={ccconfig}/>
|
|
|
|
</Card>
|