diff --git a/app/models/certificate.js b/app/models/certificate.js index d0e2bf1f9..b28a1bf14 100644 --- a/app/models/certificate.js +++ b/app/models/certificate.js @@ -37,8 +37,7 @@ export default Resource.extend({ return []; } - return sans.split(',') - .removeObject(cn) + return sans.removeObject(cn) .filter((san) => (`${ san }`).indexOf('@') === -1); }), diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 99c60e513..d286dc027 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -617,7 +617,7 @@ certificatesPage: labelText: Domain Names single: '{cn} ' withSan: | - {cn} + + {cn} + {sans, plural, =1 {1 other} other {# others} diff --git a/translations/zh-hans.yaml b/translations/zh-hans.yaml index e27e48e33..15b047f7a 100644 --- a/translations/zh-hans.yaml +++ b/translations/zh-hans.yaml @@ -604,7 +604,7 @@ certificatesPage: labelText: 域名 single: '{cn} ' withSan: | - {cn} + + {cn} + {sans, plural, =1{1other} other{#others}