🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More
Socket
Sign inDemoInstall
Socket

braziw-plugin-dbedit

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braziw-plugin-dbedit - npm Package Compare versions

Comparing version

to
7.6.1

2

package.json
{
"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,