mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-08 02:13:34 +00:00
first open-appsec support
This commit is contained in:
@@ -407,6 +407,34 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* openappsec Log
|
||||
*/
|
||||
showOpenappsecLog: function () {
|
||||
let controller = this;
|
||||
if (Cache.User.isAdmin()) {
|
||||
require(['./main', './openappsec-log/main'], (App, View) => {
|
||||
controller.navigate('/openappsec-log');
|
||||
App.UI.showAppContent(new View());
|
||||
});
|
||||
} else {
|
||||
this.showDashboard();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* openappsec Log Metadata
|
||||
*
|
||||
* @param model
|
||||
*/
|
||||
showOpenappsecMeta: function (model) {
|
||||
if (Cache.User.isAdmin()) {
|
||||
require(['./main', './openappsec-log/meta'], function (App, View) {
|
||||
App.UI.showModalDialog(new View({model: model}));
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Settings
|
||||
*/
|
||||
|
Reference in New Issue
Block a user