zet-lib 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Form.js +1 -1
- package/lib/zRoute.js +5 -1
- package/package.json +1 -1
package/lib/Form.js
CHANGED
|
@@ -379,7 +379,7 @@ Form.field = (obj) => {
|
|
|
379
379
|
}
|
|
380
380
|
let btnAdd = ''
|
|
381
381
|
if (!obj.isAddButton && !obj.viewOnly) {
|
|
382
|
-
btnAdd = `<th><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
|
|
382
|
+
btnAdd = `<th class="float-end"><img id="add${obj.id}" src="/assets/icons/plus.svg" class="icons-bg-white boxy-small btn-plus" ></th>`
|
|
383
383
|
}
|
|
384
384
|
obj.btnAdd = btnAdd
|
|
385
385
|
obj.html = html
|
package/lib/zRoute.js
CHANGED
|
@@ -2197,10 +2197,14 @@ zRoute.postGridReload = async (req, res) => {
|
|
|
2197
2197
|
let routeName = res.locals.routeName
|
|
2198
2198
|
let userId = res.locals.userId
|
|
2199
2199
|
let json = Util.jsonSuccess('Successfully to reset grid filter ')
|
|
2200
|
-
await connection.
|
|
2200
|
+
let result = await connection.update({
|
|
2201
2201
|
table: gridTable,
|
|
2202
|
+
data: {
|
|
2203
|
+
filter: null,
|
|
2204
|
+
},
|
|
2202
2205
|
where: { user_id: userId, route_name: routeName },
|
|
2203
2206
|
})
|
|
2207
|
+
|
|
2204
2208
|
//await zRoute.attributeData(res, )
|
|
2205
2209
|
res.json(json)
|
|
2206
2210
|
}
|