Finished coding the AssetTypes part of the Admin page. Tested adding assets. Did not implement removing them or updating them. Added the start for a page to manage assets.

This commit is contained in:
2022-06-29 00:31:47 -07:00
parent 3c58f3f8da
commit 94c7fb9f7b
5 changed files with 3734 additions and 75 deletions

View File

@@ -8,6 +8,7 @@
import Users from './Users.svelte';
import Admin from './Admin.svelte';
import Announcer from './Announcer.svelte';
import Assets from "./Assets.svelte";
// When the URL changes, run the code... in this case to scroll to the top.
router.subscribe(_ => window.scrollTo(0, 0));
@@ -66,6 +67,7 @@
<a href="/users">Users</a>
{/if}
{#if isAdmin}
<a href="/assets">Assets</a>
<a href="/admin">Admin</a>
{/if}
</nav>
@@ -79,6 +81,11 @@
</div>
</div>
</Route>
<Route path="/assets">
{#if isAdmin}
<Assets/>
{/if}
</Route>
<Route path="/admin">
{#if isAdmin}
<Admin/>