Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 3b24b0f

Browse files
committed
Add default label to the first address.
1 parent 274716e commit 3b24b0f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

css/obBase.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4828,6 +4828,14 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
48284828
border-style: dashed;
48294829
}
48304830

4831+
.addressesWrapper .addressBox .defaultLabel {
4832+
display: none;
4833+
}
4834+
4835+
.addressesWrapper:first-child .addressBox .defaultLabel {
4836+
display: block;
4837+
}
4838+
48314839
.buyAddressWrapper {
48324840
padding: 15px;
48334841
overflow: hidden;

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"Files": "Files",
128128
"NewAddress": "New Address",
129129
"CurrentAddress": "Current Addresses",
130+
"DefaultAddress": "Default Address",
130131
"ReturnsPolicy": "Returns Policy",
131132
"Tags": "Tags",
132133
"Keywords": "Keywords",

js/templates/settings.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('CurrentAddress') %><
835835
</div>
836836
<div class="flexRow pad5 rowTop15 js-sortableAddresses">
837837
<% _.each(ob.user.shipping_addresses, function(address, i){ %>
838-
<div class="flexCol-4 pad10 row15">
838+
<div class="flexCol-4 pad10 row15 addressesWrapper">
839839
<div class="addressBox custCol-secondary custCol-border-background js-address">
840840
<div class="textOpacity1 row40">
841841
<div><%= address.name %></div>
@@ -859,6 +859,9 @@ <h3 class="padding15 margin0 fontWeight500"><%= polyglot.t('CurrentAddress') %><
859859
<span class="fontSize12 clickable togLabelOn js-settingsAddressUnDelete"><%= polyglot.t('DontDelete') %></span>
860860
</label>
861861
</div>
862+
<div class="positionBottomRight defaultLabel padding10 note">
863+
<%= polyglot.t('DefaultAddress') %>
864+
</div>
862865
</div>
863866
</div>
864867
<% }); %>

0 commit comments

Comments
 (0)