Copy
This commit is contained in:
parent
1a7e845c56
commit
19caf3cddf
|
@ -163,7 +163,7 @@
|
||||||
"component": "ClearRowSelection"
|
"component": "ClearRowSelection"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Download file",
|
"name": "Download File",
|
||||||
"type": "data",
|
"type": "data",
|
||||||
"component": "DownloadFile"
|
"component": "DownloadFile"
|
||||||
}
|
}
|
||||||
|
|
|
@ -400,6 +400,23 @@ const closeSidePanelHandler = () => {
|
||||||
sidePanelStore.actions.close()
|
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 = {
|
const handlerMap = {
|
||||||
["Fetch Row"]: fetchRowHandler,
|
["Fetch Row"]: fetchRowHandler,
|
||||||
["Save Row"]: saveRowHandler,
|
["Save Row"]: saveRowHandler,
|
||||||
|
@ -418,6 +435,7 @@ const handlerMap = {
|
||||||
["Prompt User"]: promptUserHandler,
|
["Prompt User"]: promptUserHandler,
|
||||||
["Open Side Panel"]: openSidePanelHandler,
|
["Open Side Panel"]: openSidePanelHandler,
|
||||||
["Close Side Panel"]: closeSidePanelHandler,
|
["Close Side Panel"]: closeSidePanelHandler,
|
||||||
|
["Download File"]: downloadFileHandler,
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirmTextMap = {
|
const confirmTextMap = {
|
||||||
|
|
Loading…
Reference in New Issue