Auto select first available row action
This commit is contained in:
parent
232a2829d2
commit
2a02298ac2
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue