-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cart,order): set redirect token default value (#2780)
- Loading branch information
Showing
11 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/guards/billing-address/billing-address-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartBillingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartBillingAddressGuardRedirectUrl'); | ||
export const DaffCartBillingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartBillingAddressGuardRedirectUrl', { factory: () => '/' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/guards/order-result/order-result-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartOrderResultGuardRedirectUrl = new InjectionToken<string>('DaffCartOrderResultGuardRedirectUrl'); | ||
export const DaffCartOrderResultGuardRedirectUrl = new InjectionToken<string>('DaffCartOrderResultGuardRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/guards/payment-method/payment-method-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartPaymentMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartPaymentMethodGuardRedirectUrl'); | ||
export const DaffCartPaymentMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartPaymentMethodGuardRedirectUrl', { factory: () => '/' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffResolveCartGuardRedirectUrl = new InjectionToken<string>('DaffResolveCartGuardRedirectUrl'); | ||
export const DaffResolveCartGuardRedirectUrl = new InjectionToken<string>('DaffResolveCartGuardRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/guards/shipping-address/shipping-address-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartShippingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingAddressGuardRedirectUrl'); | ||
export const DaffCartShippingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingAddressGuardRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/guards/shipping-method/shipping-method-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartShippingMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingMethodGuardRedirectUrl'); | ||
export const DaffCartShippingMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingMethodGuardRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/resolvers/tokens/cart-resolver-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffCartResolverRedirectUrl = new InjectionToken<string>('DaffCartResolverRedirectUrl'); | ||
export const DaffCartResolverRedirectUrl = new InjectionToken<string>('DaffCartResolverRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/cart/routing/src/resolvers/tokens/empty-cart-resolver-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffEmptyCartResolverRedirectUrl = new InjectionToken<string>('DaffEmptyCartResolverRedirectUrl'); | ||
export const DaffEmptyCartResolverRedirectUrl = new InjectionToken<string>('DaffEmptyCartResolverRedirectUrl', { factory: () => '/' }); |
2 changes: 1 addition & 1 deletion
2
libs/order/routing/src/guards/placed-order/placed-order-guard-redirect.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const DaffPlacedOrderGuardRedirectUrl = new InjectionToken<string>('DaffPlacedOrderGuardRedirectUrl'); | ||
export const DaffPlacedOrderGuardRedirectUrl = new InjectionToken<string>('DaffPlacedOrderGuardRedirectUrl', { factory: () => '/' }); |