Skip to content

Commit 85ceab1

Browse files
committed
More readonly members #11936
1 parent e278083 commit 85ceab1

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎client/app/admin/order/order/order.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class OrderComponent {
5050
/**
5151
* Template usage
5252
*/
53-
protected UserRole = UserRole;
53+
protected readonly UserRole = UserRole;
5454

5555
public constructor() {
5656
this.viewer = this.dialogData.activatedRoute.snapshot.data.viewer

‎client/app/front-office/components/soutenir/rejoindre-association/rejoindre-association.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {AddToCartComponent} from '../../../modules/shop/components/add-to-cart/a
1212
export class RejoindreAssociationComponent implements OnInit {
1313
protected readonly productService = inject(ProductService);
1414

15-
protected ProductType = ProductType;
15+
protected readonly ProductType = ProductType;
1616

1717
protected membershipProduct!: Product['product'];
1818

‎client/app/front-office/front-office.component.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ export class FrontOfficeComponent implements OnInit, AfterViewInit {
269269

270270
protected mobileNavigation: MenuItem[] = [];
271271

272-
protected Currency = Currency;
273-
protected UserRole = UserRole;
272+
protected readonly Currency = Currency;
273+
protected readonly UserRole = UserRole;
274274

275275
public ngOnInit(): void {
276276
this.userService.getViewerObservable().subscribe(viewer => (this.viewer = viewer));

‎client/app/front-office/modules/cart/components/create-order/create-order.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class CreateOrderComponent implements OnInit {
6767
/**
6868
* For template usage
6969
*/
70-
protected PaymentMethod = PaymentMethod;
70+
protected readonly PaymentMethod = PaymentMethod;
7171

7272
/**
7373
* If true, cart is hidden and confirmation message is shown.

‎client/app/front-office/modules/shop/components/products-page/products-page.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class ProductsPageComponent extends AbstractInfiniteLoadList<ProductServi
8686
/**
8787
* Template access
8888
*/
89-
protected ProductsViewMode = ProductsViewMode;
89+
protected readonly ProductsViewMode = ProductsViewMode;
9090

9191
/**
9292
* Pagination with page size as multiple of 3 to end correctly before "show more" button.

‎client/app/front-office/modules/shop/components/subscriptions/subscriptions.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class SubscriptionsComponent implements OnInit {
2525

2626
protected subscriptions: Record<string, Subscriptions['subscriptions']['items'][0]> | null = null;
2727

28-
protected ProductType = ProductType;
28+
protected readonly ProductType = ProductType;
2929

3030
public ngOnInit(): void {
3131
this.subscriptionService

‎client/app/profile/components/profile/profile.component.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class ProfileComponent implements OnInit {
3535
protected readonly productService = inject(ProductService);
3636

3737
protected viewer: CurrentUserForProfile['viewer'] = null;
38-
protected ProductType = ProductType;
39-
protected Membership = Membership;
38+
protected readonly ProductType = ProductType;
39+
protected readonly Membership = Membership;
4040

4141
protected membershipProduct: Product['product'] | null = null;
4242

‎client/app/profile/components/purchases/purchases.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {AsyncPipe, DatePipe} from '@angular/common';
4141
export class PurchasesComponent extends NaturalAbstractList<PurchaseService> implements OnInit {
4242
private readonly naturalFileService = inject(NaturalFileService);
4343

44-
protected ProductType = ProductType;
44+
protected readonly ProductType = ProductType;
4545

4646
public constructor() {
4747
super(inject(PurchaseService));

0 commit comments

Comments
 (0)