✨ Added shares on admin-site
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import type { PageData } from './$types';
|
||||
import Editor from '../../../lib/quiztivity/editor.svelte';
|
||||
import Editor from '$lib/quiztivity/editor.svelte';
|
||||
import SharesPopover from '$lib/quiztivity/shares_popover.svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
export let data: PageData;
|
||||
@@ -13,6 +14,7 @@
|
||||
let saving = false;
|
||||
|
||||
let quiztivity = data.quiztivity;
|
||||
let shares_menu_open = false;
|
||||
|
||||
const save_quiztivity = async () => {
|
||||
saving = true;
|
||||
@@ -37,3 +39,7 @@
|
||||
<div class="h-full">
|
||||
<Editor bind:data={quiztivity} on:save={save_quiztivity} bind:saving />
|
||||
</div>
|
||||
|
||||
{#if shares_menu_open}
|
||||
<SharesPopover id={quiztivity.id} bind:open={shares_menu_open} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user