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:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user