This commit is contained in:
Diego Imbert
2025-06-25 20:18:47 +02:00
parent 677b196295
commit 4e2a1b8ac9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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