Copy
This commit is contained in:
parent
1a7e845c56
commit
19caf3cddf
|
@ -163,7 +163,7 @@
|
|||
"component": "ClearRowSelection"
|
||||
},
|
||||
{
|
||||
"name": "Download file",
|
||||
"name": "Download File",
|
||||
"type": "data",
|
||||
"component": "DownloadFile"
|
||||
}
|
||||
|
|
|
@ -400,6 +400,23 @@ const closeSidePanelHandler = () => {
|
|||
sidePanelStore.actions.close()
|
||||
}
|
||||
|
||||
const downloadFileHandler = (action, context) => {
|
||||
download(action.parameters.value, `file.jpg`)
|
||||
// const x = processStringSync(action.parameters.value, context)
|
||||
// console.warn(x)
|
||||
|
||||
// // Built total context for this action
|
||||
// const totalContext = {
|
||||
// ...context,
|
||||
// state: get(stateStore),
|
||||
// actions: buttonContext,
|
||||
// }
|
||||
|
||||
// action = enrichDataBindings(action, totalContext)
|
||||
|
||||
// console.error(action)
|
||||
}
|
||||
|
||||
const handlerMap = {
|
||||
["Fetch Row"]: fetchRowHandler,
|
||||
["Save Row"]: saveRowHandler,
|
||||
|
@ -418,6 +435,7 @@ const handlerMap = {
|
|||
["Prompt User"]: promptUserHandler,
|
||||
["Open Side Panel"]: openSidePanelHandler,
|
||||
["Close Side Panel"]: closeSidePanelHandler,
|
||||
["Download File"]: downloadFileHandler,
|
||||
}
|
||||
|
||||
const confirmTextMap = {
|
||||
|
|
Loading…
Reference in New Issue