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

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

Issue 1856923002: MD Settings: Certificate manager, remove border from last certificate entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use more CSS, less JS. 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_entry.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_entry.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_entry.js
index c2441ac1d97e4e306048f77586dfb3a82dcb677a..7dddd50943c2076d2ee620b5a2dcd3f34346618d 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_entry.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_entry.js
@@ -15,4 +15,13 @@ Polymer({
/** @type {!settings.CertificateType} */
certificateType: String,
},
+
+ /**
+ * @param {number} index
+ * @return {boolean} Whether the given index corresponds to the last sub-node.
+ * @private
+ */
+ isLast_: function(index) {
+ return index == this.model.subnodes.length - 1;
+ },
});

Powered by Google App Engine
This is Rietveld 408576698