Skip to content

Commit

Permalink
Add dev-only buttons linking to org list
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jun 6, 2024
1 parent 7baf25b commit 5c0128f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/lib/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
},
"appmenu": {
"log_out": "Log out",
"orgs": "Organizations",
"help": "Help"
},
"close": "Close",
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/lib/layout/AppMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import type {LexAuthUser} from '$lib/user';
import Icon from '$lib/icons/Icon.svelte';
import { helpLinks } from '$lib/components/help';
import DevContent from './DevContent.svelte';
export let serverVersion: string;
export let apiVersion: string | null;
Expand Down Expand Up @@ -52,6 +53,15 @@
</a>
</li>

<DevContent>
<li>
<a href="/org/list" data-sveltekit-preload-data="tap">
{$t('appmenu.orgs')}
<Icon icon="i-mdi-account-group-outline" size="text-2xl" />
</a>
</li>
</DevContent>

<li>
<a href={helpLinks.helpList} target="_blank" rel="external">
{$t('appmenu.help')}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/lib/layout/Layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
{$t('appmenu.help')}
<Icon icon="i-mdi-open-in-new" size="text-lg" />
</a>
<DevContent>
<a href="/org/list" class="btn btn-sm btn-warning max-sm:hidden">
{$t('appmenu.orgs')}
<Icon icon="i-mdi-account-group-outline" size="text-lg" />
</a>
</DevContent>
<AdminContent>
<a href="/admin" class="btn btn-sm btn-accent">
<span class="max-sm:hidden">
Expand Down

0 comments on commit 5c0128f

Please sign in to comment.