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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html

Issue 2277963002: Add placeholders when lists are empty for passwords and autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback and Add Tests Created 4 years, 4 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/passwords_and_forms_page/autofill_section.html
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
index 70c61f9ce5bdc1337f6b73fb277946cf9219107b..d4d3f6a4003ebdb4f7c8961f1adf83b58ec3b9e1 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
@@ -55,6 +55,10 @@
</div>
</template>
</div>
+ <div id="noAddressesLabel" class="list-item"
+ hidden$="[[hasSome_(addresses)]]">
+ $i18n{noAddressesFound}
+ </div>
<div class="list-item list-button">
<a is="action-link" on-tap="onAddAddressTap_">$i18n{addAddress}</a>
</div>
@@ -74,7 +78,8 @@
<h2>$i18n{creditCards}</h2>
</div>
<div class="list-frame">
- <div class="list-item column-header">
+ <div id="creditCardsHeading" class="list-item column-header"
+ hidden$="[[!hasSome_(creditCards)]]">
<div class="type-column">$i18n{creditCardType}</div>
<div class="expiration-column">$i18n{creditCardExpiration}</div>
</div>
@@ -103,6 +108,10 @@
</div>
</template>
</div>
+ <div id="noCreditCardsLabel" class="list-item"
+ hidden$="[[hasSome_(creditCards)]]">
+ $i18n{noCreditCardsFound}
+ </div>
<div class="list-item list-button">
<a is="action-link" on-tap="onAddCreditCardTap_">
$i18n{addCreditCard}
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698