mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 00:01:49 +00:00
tweak
This commit is contained in:
@@ -21,8 +21,8 @@ export function formatAsset(asset: Asset): string {
|
||||
|
||||
export function getAssetUsagePageUri(usage: ListAssetsResponse[number]['usages'][number]) {
|
||||
if (usage.usage_kind === 'script') {
|
||||
return `/scripts/edit/${usage.usage_path}`
|
||||
return `/scripts/get/${usage.usage_path}`
|
||||
} else if (usage.usage_kind === 'flow') {
|
||||
return `/flows/edit/${usage.usage_path}`
|
||||
return `/flows/get/${usage.usage_path}`
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<tbody class="divide-y bg-surface">
|
||||
{#each filteredAssets as asset}
|
||||
{@const assetUri = formatAsset(asset)}
|
||||
<tr>
|
||||
<tr class="h-14">
|
||||
<Cell first>{truncate(assetUri, 92)}</Cell>
|
||||
<Cell>
|
||||
<a href={`#${assetUri}`} onclick={() => (viewOccurences = asset)}>
|
||||
@@ -64,7 +64,7 @@
|
||||
size="xs"
|
||||
variant="border"
|
||||
spacingSize="xs2"
|
||||
btnClasses="mt-1 w-24"
|
||||
btnClasses="w-24"
|
||||
on:click={async () => isS3Uri(assetUri) && s3FilePicker?.open(assetUri)}
|
||||
>
|
||||
<File size={18} /> View
|
||||
|
||||
Reference in New Issue
Block a user