Fixes (#522)
- Remove cache fields from settings - Call the event callback method with success false to fix button widget loading issue
This commit is contained in:
parent
c1df5a95ac
commit
c55a9214e1
|
|
@ -15,17 +15,17 @@ export const queryActionSettingsConfig = [
|
|||
controlType: "SWITCH",
|
||||
info: "Ask confirmation from the user everytime before refreshing data",
|
||||
},
|
||||
{
|
||||
label: "Cache response",
|
||||
configProperty: "shouldCacheResponse",
|
||||
controlType: "SWITCH",
|
||||
},
|
||||
{
|
||||
label: "Cache timeout (in milliseconds)",
|
||||
configProperty: "cacheTimeout",
|
||||
controlType: "INPUT_TEXT",
|
||||
dataType: "NUMBER",
|
||||
},
|
||||
// {
|
||||
// label: "Cache response",
|
||||
// configProperty: "shouldCacheResponse",
|
||||
// controlType: "SWITCH",
|
||||
// },
|
||||
// {
|
||||
// label: "Cache timeout (in milliseconds)",
|
||||
// configProperty: "cacheTimeout",
|
||||
// controlType: "INPUT_TEXT",
|
||||
// dataType: "NUMBER",
|
||||
// },
|
||||
{
|
||||
label: "Query Timeout (in milliseconds)",
|
||||
configProperty: "actionConfiguration.timeoutInMillisecond",
|
||||
|
|
@ -53,17 +53,17 @@ export const apiActionSettingsConfig = [
|
|||
controlType: "SWITCH",
|
||||
info: "Ask confirmation from the user everytime before refreshing data",
|
||||
},
|
||||
{
|
||||
label: "Cache response",
|
||||
configProperty: "shouldCacheResponse",
|
||||
controlType: "SWITCH",
|
||||
},
|
||||
{
|
||||
label: "Cache timeout (in milliseconds)",
|
||||
configProperty: "cacheTimeout",
|
||||
controlType: "INPUT_TEXT",
|
||||
dataType: "NUMBER",
|
||||
},
|
||||
// {
|
||||
// label: "Cache response",
|
||||
// configProperty: "shouldCacheResponse",
|
||||
// controlType: "SWITCH",
|
||||
// },
|
||||
// {
|
||||
// label: "Cache timeout (in milliseconds)",
|
||||
// configProperty: "cacheTimeout",
|
||||
// controlType: "INPUT_TEXT",
|
||||
// dataType: "NUMBER",
|
||||
// },
|
||||
{
|
||||
label: "Api Timeout (in milliseconds)",
|
||||
configProperty: "actionConfiguration.timeoutInMillisecond",
|
||||
|
|
|
|||
|
|
@ -289,6 +289,9 @@ export function* executeActionSaga(
|
|||
if (api.confirmBeforeExecute) {
|
||||
const confirmed = yield call(confirmRunActionSaga);
|
||||
if (!confirmed) {
|
||||
if (event.callback) {
|
||||
event.callback({ success: false });
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user