Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

redirect on adding new quote and fix error on submitting #104

Merged
merged 2 commits into from
Dec 13, 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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="cart-row">
<div class="grid">
<div class="grid-item text-right">
<button class="btn" ng-class="{ 'btn-secondary': !dialogData.updated }" ng-disabled="!dialogData.updated" ng-click="redirect('{{ 'quoterequest' | absolute_url }}')">
<button class="btn" ng-controller="actualQuoteRequestBarController" ng-class="{ 'btn-secondary': !dialogData.updated }" ng-disabled="!dialogData.updated" ng-click="redirect(baseUrl + 'quoterequest/#/' + actualQuoteRequest.number)">
<span ng-if="dialogData.updated">{{ 'cart.general.go_request' | t }}</span>
<span ng-if="!dialogData.updated">{{ 'cart.general.update_quote' | t }}</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion templates/customers/quote-requests.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% assign quote_request_url = '/quoterequest/#/' | append: quote_request.number %}
<a href="{{ quote_request_url | absolute_url }}">{{ quote_request.number }}</a>
</td>
<td>{{ quote_request.created_date | date: format: 'month_day_year' }}</td>
<td>{{ quote_request.created_date | date: 'month_day_year' }}</td>
<td>{{ quote_request.status }}</td>
</tr>
{% endfor %}
Expand Down