Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_list.js

Issue 1865373002: MD Settings: Certificate manager, polish "no certificates" text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
index 94721d3df5690b7194a086100789a7e2f52f6b0e..a347577ba8e98f5ea009d20e9e0c25e16ec0e5f9 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
@@ -27,6 +27,9 @@ Polymer({
* @private
*/
getDescription_: function() {
+ if (this.certificates.length == 0)
+ return this.i18n('certificateManagerNoCertificates');
+
switch (this.certificateType) {
case settings.CertificateType.PERSONAL:
return this.i18n('certificateManagerYourCertificatesDescription');

Powered by Google App Engine
This is Rietveld 408576698