fix: Remove constructor injection
Some checks failed
CI / Get Changed Files (pull_request) Successful in 11s
Label PRs based on size / Check PR size (pull_request) Successful in 20s
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 35s
CI / eslint (pull_request) Successful in 42s
CI / test-build (pull_request) Successful in 53s
CI / Docker frontend validation (pull_request) Successful in 57s
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Failing after 2m45s
Claude PR Review / claude-code (pull_request) Successful in 11m9s
Some checks failed
CI / Get Changed Files (pull_request) Successful in 11s
Label PRs based on size / Check PR size (pull_request) Successful in 20s
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 35s
CI / eslint (pull_request) Successful in 42s
CI / test-build (pull_request) Successful in 53s
CI / Docker frontend validation (pull_request) Successful in 57s
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Failing after 2m45s
Claude PR Review / claude-code (pull_request) Successful in 11m9s
This commit is contained in:
parent
45fe90237b
commit
34c70a0996
16 changed files with 86 additions and 62 deletions
|
@ -1,4 +1,4 @@
|
|||
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
|
||||
import { ChangeDetectorRef, Component, OnInit, inject } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { LootboxService } from '../services/lootbox.service';
|
||||
import { LootBox } from 'app/model/LootBox';
|
||||
|
@ -86,13 +86,11 @@ export default class LootboxSelectionComponent implements OnInit {
|
|||
},
|
||||
];
|
||||
|
||||
constructor(
|
||||
private lootboxService: LootboxService,
|
||||
private router: Router,
|
||||
private cdr: ChangeDetectorRef,
|
||||
private authService: AuthService,
|
||||
private userService: UserService
|
||||
) {}
|
||||
private lootboxService = inject(LootboxService);
|
||||
private router = inject(Router);
|
||||
private cdr = inject(ChangeDetectorRef);
|
||||
private authService = inject(AuthService);
|
||||
private userService = inject(UserService);
|
||||
|
||||
ngOnInit(): void {
|
||||
this.loadLootboxes();
|
||||
|
|
Reference in a new issue