Skip to content

Commit

Permalink
feat(com-pwa): page order product done btn
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 6, 2023
1 parent 6c3e18b commit f25e479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uniquely/com-pwa/src/page-order/page-order-product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class AlwatrPageOrderProduct extends LocalizeMixin(SignalMixin(AlwatrBase
topAppBarContextProvider.setValue({
type: 'small',
headline: message('page_product_list_headline'),
startIcon: {icon: 'arrow-back-outline', flipRtl: true, clickSignalId: 'back-click-event'},
startIcon: {icon: 'checkmark-done', flipRtl: true, clickSignalId: 'back-click-event'},
tinted: 2,
});
}
Expand Down
4 changes: 2 additions & 2 deletions uniquely/com-pwa/src/page-order/page-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export class AlwatrPageOrder extends LocalizeMixin(SignalMixin(AlwatrBaseElement
* `/order/new/edit`
*/

if (this.orderId && this.order?.status === 'draft' && this.order.itemList?.length) {
redirect({sectionList: [this.orderId, 'product']}, 'replace', this.routeSlice);
if (this.orderId && this.order?.status === 'draft' && !this.order.itemList?.length) {
redirect({sectionList: [this.orderId, 'product']}, true, this.routeSlice);
return nothing;
}

Expand Down

0 comments on commit f25e479

Please sign in to comment.