braziw-plugin-dbedit
Advanced tools
Comparing version
{ | ||
"name": "braziw-plugin-dbedit", | ||
"version": "7.6.0", | ||
"version": "7.6.1", | ||
"description": "Braziw js Mongo DB object editor / scaffolding.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -80,6 +80,9 @@ 'use strict'; | ||
} | ||
} else { | ||
myShowAddButton = (enableDangerousClientFiltering && req.query.showAddButton === 'Y'); | ||
} | ||
if (enableDangerousClientFiltering && req.query.showAddButton) { | ||
myShowAddButton = req.query.showAddButton === 'Y'; | ||
} | ||
let myShouldShowEditAction; | ||
@@ -248,2 +251,7 @@ if (shouldShowEditAction.permission) { | ||
let querySaveParamsAppend = ''; | ||
if (querySaveParams) { | ||
querySaveParamsAppend = '&' + querySaveParams; | ||
} | ||
if (queryEditActionOnClick) { | ||
@@ -257,3 +265,3 @@ editActionOnClickStr = `onclick="${editActionOnClick}"` | ||
actionArr.push( | ||
`<a title="Edit" ${editActionOnClickStr} class="btn btn-link btn-flatten-m" href="${editUrl}?_backUrl=${encodeURIComponent(req.url)}&_id=${record._id.toString()}${queryModelParam}""> | ||
`<a title="Edit" ${editActionOnClickStr} class="btn btn-link btn-flatten-m" href="${editUrl}?_backUrl=${encodeURIComponent(req.url)}&_id=${record._id.toString()}${queryModelParam}${querySaveParamsAppend}"> | ||
<i class="fa fa-pencil"></i> | ||
@@ -260,0 +268,0 @@ </a>` |
@@ -77,4 +77,8 @@ 'use strict'; | ||
shouldShowDeleteAction = shouldShowDeleteAction || (enableDangerousClientFiltering && req.query.shouldShowDeleteAction); | ||
let myShouldShowDeleteAction = shouldShowDeleteAction; | ||
if (enableDangerousClientFiltering && req.query.shouldShowDeleteAction) { | ||
myShouldShowDeleteAction = req.query.shouldShowDeleteAction === "Y"; | ||
} | ||
let myModelName = modelAttr.name; | ||
@@ -245,3 +249,3 @@ let modelDisplayName = queryDisplayName || modelAttr.displayName || modelAttr.name; | ||
filterCols: filterCols, | ||
shouldShowDeleteAction: shouldShowDeleteAction, | ||
shouldShowDeleteAction: myShouldShowDeleteAction, | ||
shouldShowSaveButton: myShowSaveButton, | ||
@@ -248,0 +252,0 @@ additionalSubmitButtons: additionalSubmitButtons, |
62905
0.5%1103
0.73%