mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 03:56:49 +00:00
31 lines
666 B
TypeScript
31 lines
666 B
TypeScript
export const useActionPane = createSharedComposable(() => {
|
|
const isViewActionsEnabled = computed(() => false)
|
|
|
|
const actionPanelSize = ref(40)
|
|
const isPanelExpanded = ref(false)
|
|
|
|
const toggleActionPanel = () => {}
|
|
|
|
const openActionPane = () => {}
|
|
|
|
const addScriptExecution = (..._args: any) => {}
|
|
|
|
const removeScriptExecution = (..._args: any) => {}
|
|
|
|
const clearAllExecutions = () => {}
|
|
|
|
const executions = computed(() => [])
|
|
|
|
return {
|
|
isPanelExpanded,
|
|
actionPanelSize,
|
|
toggleActionPanel,
|
|
openActionPane,
|
|
addScriptExecution,
|
|
removeScriptExecution,
|
|
clearAllExecutions,
|
|
executions,
|
|
isViewActionsEnabled,
|
|
}
|
|
})
|