Skip to content

Commit

Permalink
feat(cart,order): set redirect token default value (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed May 13, 2024
1 parent f3cc393 commit 207a75c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
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: () => '/' });
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { InjectionToken } from '@angular/core';
/**
* The path to which the user should be redirected if the cart has no items when {@link DaffCartItemsGuard} is invoked.
*/
export const DaffCartItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartItemsGuardRedirectUrl');
export const DaffCartItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartItemsGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { InjectionToken } from '@angular/core';
/**
* The path to which the user should be redirected if the cart has no items when {@link DaffCartInStockItemsGuard} is invoked.
*/
export const DaffCartInStockItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartInStockItemsGuardRedirectUrl');
export const DaffCartInStockItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartInStockItemsGuardRedirectUrl', { factory: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });
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: () => '/' });

0 comments on commit 207a75c

Please sign in to comment.