Auto select first available row action

This commit is contained in:
Andrew Kingston 2024-09-03 10:56:38 +01:00
parent 232a2829d2
commit 2a02298ac2
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,6 @@
tableId: view.tableId, tableId: view.tableId,
resourceId: view.id, resourceId: view.id,
})) }))
$: console.log($viewsV2.list)
$: datasourceOptions = [...(tableOptions || []), ...(viewOptions || [])] $: datasourceOptions = [...(tableOptions || []), ...(viewOptions || [])]
$: resourceId = parameters.resourceId $: resourceId = parameters.resourceId
$: fetchRowActions(resourceId) $: fetchRowActions(resourceId)
@ -46,6 +45,9 @@
console.error(err) console.error(err)
rowActions = [] rowActions = []
} }
// Auto select first action
parameters.rowActionId = rowActions[0]?.id
} }
</script> </script>