Skip to content

Commit

Permalink
Edit plugin button links to edit plugin page now
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticLeah committed Jun 23, 2024
1 parent b149719 commit 4fce156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/lib/PluginListing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
export let showExtraOptions: boolean = false;
export let pluginId : string;
export let className = '';
</script>

Expand All @@ -32,7 +34,7 @@
<details class="dropdown dropdown-end">
<summary class="m-1 btn"><Icon icon="charm:menu-meatball" /></summary>
<ul class="p-2 shadow menu dropdown-content z-[1] bg-base-100 rounded-box w-52">
<li><button>Edit</button></li>
<li><a href='/editPlugin?id={pluginId}'>Edit</a></li>
</ul>
</details>
{/if}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/routes/plugin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
shortDesc={selectedPluginData.summary_long}
tags={selectedPluginData.tags}
showExtraOptions={true}
{pluginId}
></PluginListing>
{/if}

Expand Down

0 comments on commit 4fce156

Please sign in to comment.