You've already forked nginx-proxy-manager
mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-15 03:41:48 +03:00
Frontend user list and modal dialog fixes
This commit is contained in:
@ -26,34 +26,30 @@ module.exports = {
|
||||
|
||||
/**
|
||||
* Users
|
||||
*
|
||||
* @param {Number} [offset]
|
||||
* @param {Number} [limit]
|
||||
* @param {String} [sort]
|
||||
*/
|
||||
showUsers: function (offset, limit, sort) {
|
||||
/*
|
||||
showUsers: function () {
|
||||
let controller = this;
|
||||
if (Cache.User.isAdmin()) {
|
||||
require(['./main', './users/main'], (App, View) => {
|
||||
controller.navigate('/users');
|
||||
App.UI.showMainLoading();
|
||||
let view = new View({
|
||||
sort: (typeof sort !== 'undefined' && sort ? sort : Cache.Session.Users.sort),
|
||||
offset: (typeof offset !== 'undefined' ? offset : Cache.Session.Users.offset),
|
||||
limit: (typeof limit !== 'undefined' && limit ? limit : Cache.Session.Users.limit)
|
||||
});
|
||||
|
||||
view.on('loaded', function () {
|
||||
App.UI.hideMainLoading();
|
||||
});
|
||||
|
||||
App.UI.showAppContent(view);
|
||||
App.UI.showAppContent(new View());
|
||||
});
|
||||
} else {
|
||||
this.showRules();
|
||||
this.showDashboard();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* User Form
|
||||
*
|
||||
* @param model
|
||||
*/
|
||||
showUserForm: function (model) {
|
||||
if (Cache.User.isAdmin()) {
|
||||
require(['./main', './user/form'], function (App, View) {
|
||||
App.UI.showModalDialog(new View({model: model}));
|
||||
});
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user