Merge branch 'client-side-log-pagination' into open-appsec-integration

This commit is contained in:
Rami Winestock
2023-12-12 13:18:52 +02:00
parent 3741c52366
commit 80deae99d6
7 changed files with 280 additions and 36 deletions

View File

@@ -410,12 +410,18 @@ module.exports = {
/**
* openappsec Log
*/
showOpenappsecLog: function () {
showOpenappsecLogPage: function (page) {
page = parseInt(page) || 1;
let controller = this;
if (Cache.User.isAdmin()) {
require(['./main', './openappsec-log/main'], (App, View) => {
controller.navigate('/openappsec-log');
App.UI.showAppContent(new View());
controller.navigate('/openappsec-log/page/' + page);
// Show the view with the data
App.UI.showAppContent(new View({
page: page,
perPage: 50
}));
});
} else {
this.showDashboard();