Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(storefront): STRF-6780 clean up returns-list.html conditional logic #1512

Merged
merged 1 commit into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Changelog

## Draft

## 3.5.0 (2019-06-06)
- Fix conditional logic in returns-list.html [#1512](https://github.com/bigcommerce/cornerstone/pull/1512)

## 3.5.0 (2019-06-06)
- Remove remote_api_scripts from the templates [#1505] (https://github.com/bigcommerce/cornerstone/pull/1505)
Expand Down
18 changes: 6 additions & 12 deletions templates/components/account/returns-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,17 @@ <h3 class="account-heading">{{lang 'account.returns.heading' }}</h3>
<div class="account-orderStatus">
{{#if status '===' 'ReturnStatusPending'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.pending'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusReceived'}}
{{else if status '===' 'ReturnStatusReceived'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.received'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusAuthorized'}}
{{else if status '===' 'ReturnStatusAuthorized'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.authorized'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusRepaired'}}
{{else if status '===' 'ReturnStatusRepaired'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.repaired'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusRefunded'}}
{{else if status '===' 'ReturnStatusRefunded'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.refunded'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusRejected'}}
{{else if status '===' 'ReturnStatusRejected'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.rejected'}}</h6>
{{/if}}
{{#if status '===' 'ReturnStatusCancelled'}}
{{else if status '===' 'ReturnStatusCancelled'}}
<h6 class="account-orderStatus-label">{{lang 'account.returns.status.cancelled'}}</h6>
{{/if}}
</div>
Expand Down