mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-06 21:00:10 +00:00
Add status indicator to certificates and show active domain names
This commit is contained in:
@@ -44,12 +44,23 @@ module.exports = Mn.View.extend({
|
||||
},
|
||||
},
|
||||
|
||||
templateContext: {
|
||||
canManage: App.Cache.User.canManage('certificates'),
|
||||
isExpired: function () {
|
||||
return moment(this.expires_on).isBefore(moment());
|
||||
},
|
||||
dns_providers: dns_providers
|
||||
templateContext: function () {
|
||||
return {
|
||||
canManage: App.Cache.User.canManage('certificates'),
|
||||
isExpired: function () {
|
||||
return moment(this.expires_on).isBefore(moment());
|
||||
},
|
||||
dns_providers: dns_providers,
|
||||
proxy_hosts: this.getProxyHosts()
|
||||
};
|
||||
},
|
||||
|
||||
getProxyHosts: function () {
|
||||
const hosts = this.model.attributes.proxy_hosts || [];
|
||||
return hosts.reduce((acc, host) => {
|
||||
acc.push(...(host.domain_names || []));
|
||||
return acc;
|
||||
}, []);
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
|
Reference in New Issue
Block a user