mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 08:02:18 +00:00
use app in hub path
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
label={`New Postgres SQL query`}
|
||||
icon={faCode}
|
||||
iconColor="text-blue-800"
|
||||
on:click={() => dispatch('pick', { path: 'hub/130/execute_custom_query_postgresql' })}
|
||||
on:click={() => dispatch('pick', { path: 'hub/130/postgresql/execute_custom_query_postgresql' })}
|
||||
/>
|
||||
|
||||
<FlowScriptPicker
|
||||
|
||||
@@ -464,7 +464,7 @@ export async function getScriptByPath(path: string): Promise<{
|
||||
export async function loadHubScripts() {
|
||||
const scripts = (await ScriptService.listHubScripts()).asks ?? []
|
||||
const processed = scripts.map((x) => ({
|
||||
path: `hub/${x.id}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
|
||||
path: `hub/${x.id}/${x.app}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
|
||||
summary: `${x.summary} (${x.app}) ${x.views} uses`,
|
||||
approved: x.approved,
|
||||
is_trigger: x.is_trigger,
|
||||
|
||||
Reference in New Issue
Block a user