|
@@ -1,6 +1,5 @@
|
|
|
-import { Component, Input } from '@angular/core';
|
|
|
+import { Component, Input, inject } from '@angular/core';
|
|
|
import { ModalService } from 'src/services/modal/modal.service';
|
|
|
-import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'spellslots-modal',
|
|
@@ -15,7 +14,7 @@ export class SpellslotsModalComponent {
|
|
|
|
|
|
public kiNumbersArray: number[] = Array.from({ length: 20 }, (_, i) => i + 1);
|
|
|
|
|
|
- public constructor(public modalAccessor: ModalService) {}
|
|
|
+ private modalAccessor: ModalService = inject(ModalService);
|
|
|
|
|
|
// Shows the spellslot container
|
|
|
public onSpellslotsSwitchChanged(event: any): void {
|