mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-07 02:09:38 +00:00
Add button to add custom certificate in certificate list
This commit is contained in:
@ -45,12 +45,14 @@ module.exports = Mn.View.extend({
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('access-lists', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('access-lists', 'add') : null,
|
||||
links: manage ? [App.i18n('access-lists', 'add')] : [],
|
||||
btn_color: 'teal',
|
||||
permission: 'access_lists',
|
||||
action: function () {
|
||||
App.Controller.showNginxAccessListForm();
|
||||
}
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxAccessListForm();
|
||||
}
|
||||
]
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -45,12 +45,16 @@ module.exports = Mn.View.extend({
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('certificates', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('certificates', 'add') : null,
|
||||
links: manage ? [App.i18n('certificates', 'add-letsencrypt'), App.i18n('certificates', 'add-custom')] : [],
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxCertificateForm();
|
||||
},
|
||||
function () {
|
||||
App.Controller.showNginxCertificateForm(new CertificateModel.Model({provider: 'custom'}));
|
||||
}],
|
||||
btn_color: 'pink',
|
||||
permission: 'certificates',
|
||||
action: function () {
|
||||
App.Controller.showNginxCertificateForm();
|
||||
}
|
||||
permission: 'certificates'
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -45,12 +45,14 @@ module.exports = Mn.View.extend({
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('dead-hosts', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('dead-hosts', 'add') : null,
|
||||
links: manage ? [App.i18n('dead-hosts', 'add')] : [],
|
||||
btn_color: 'danger',
|
||||
permission: 'dead_hosts',
|
||||
action: function () {
|
||||
App.Controller.showNginxDeadForm();
|
||||
}
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxDeadForm();
|
||||
}
|
||||
]
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -41,16 +41,17 @@ module.exports = Mn.View.extend({
|
||||
|
||||
showEmpty: function() {
|
||||
let manage = App.Cache.User.canManage('proxy_hosts');
|
||||
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('proxy-hosts', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('proxy-hosts', 'add') : null,
|
||||
links: manage ? [App.i18n('proxy-hosts', 'add')] : [],
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxProxyForm();
|
||||
}
|
||||
],
|
||||
btn_color: 'success',
|
||||
permission: 'proxy_hosts',
|
||||
action: function () {
|
||||
App.Controller.showNginxProxyForm();
|
||||
}
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -44,12 +44,14 @@ module.exports = Mn.View.extend({
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('redirection-hosts', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('redirection-hosts', 'add') : null,
|
||||
links: manage ? [App.i18n('redirection-hosts', 'add')] : [],
|
||||
btn_color: 'yellow',
|
||||
permission: 'redirection_hosts',
|
||||
action: function () {
|
||||
App.Controller.showNginxRedirectionForm();
|
||||
}
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxRedirectionForm();
|
||||
}
|
||||
]
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -45,12 +45,14 @@ module.exports = Mn.View.extend({
|
||||
this.showChildView('list_region', new EmptyView({
|
||||
title: App.i18n('streams', 'empty'),
|
||||
subtitle: App.i18n('all-hosts', 'empty-subtitle', {manage: manage}),
|
||||
link: manage ? App.i18n('streams', 'add') : null,
|
||||
links: manage ? [App.i18n('streams', 'add')] : [],
|
||||
btn_color: 'blue',
|
||||
permission: 'streams',
|
||||
action: function () {
|
||||
App.Controller.showNginxStreamForm();
|
||||
}
|
||||
actions: [
|
||||
function () {
|
||||
App.Controller.showNginxStreamForm();
|
||||
}
|
||||
]
|
||||
}));
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user