1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-07-13 16:21:46 +03:00

Contextual host type colors

This commit is contained in:
Jamie Curnow
2018-07-09 12:21:03 +10:00
parent 54d220a191
commit 0455920355
16 changed files with 231 additions and 28 deletions

View File

@ -42,7 +42,7 @@ module.exports = {
/**
* User Form
*
* @param model
* @param [model]
*/
showUserForm: function (model) {
if (Cache.User.isAdmin()) {
@ -134,6 +134,19 @@ module.exports = {
}
},
/**
* Nginx Proxy Host Form
*
* @param [model]
*/
showNginxProxyForm: function (model) {
if (Cache.User.isAdmin() || Cache.User.canManage('proxy_hosts')) {
require(['./main', './nginx/proxy/form'], function (App, View) {
App.UI.showModalDialog(new View({model: model}));
});
}
},
/**
* Nginx Redirection Hosts
*/