|
@@ -12,10 +12,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
export class FullSpellcardComponent {
|
|
export class FullSpellcardComponent {
|
|
@Input() public spell!: Spell;
|
|
@Input() public spell!: Spell;
|
|
@Input() public isFromDashboard!: boolean;
|
|
@Input() public isFromDashboard!: boolean;
|
|
- @Input() public alreadyInFavorites!: boolean;
|
|
|
|
-
|
|
|
|
- public saveDC: number = 0;
|
|
|
|
- public attackBonus: string = '+3';
|
|
|
|
|
|
+ @Input() public alreadyInFavorites: boolean = true;
|
|
|
|
|
|
public constructor(
|
|
public constructor(
|
|
private modalAccessor: ModalService,
|
|
private modalAccessor: ModalService,
|
|
@@ -23,10 +20,6 @@ export class FullSpellcardComponent {
|
|
public translate: TranslateService,
|
|
public translate: TranslateService,
|
|
) {}
|
|
) {}
|
|
|
|
|
|
- // ngOnInit(): void {
|
|
|
|
- // console.log('Der zauber: ', this.spell);
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
public setBackupImage(event: any): void {
|
|
public setBackupImage(event: any): void {
|
|
event.target.src = 'assets/images/spells/backup.jpg';
|
|
event.target.src = 'assets/images/spells/backup.jpg';
|
|
}
|
|
}
|
|
@@ -46,4 +39,10 @@ export class FullSpellcardComponent {
|
|
public addToFavorites(): void {
|
|
public addToFavorites(): void {
|
|
this.modalAccessor.handleModalClosing('add', undefined);
|
|
this.modalAccessor.handleModalClosing('add', undefined);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public removeFromFavorites(): void {
|
|
|
|
+ console.log('removeFromFavorites');
|
|
|
|
+
|
|
|
|
+ this.modalAccessor.handleModalClosing('removeFromFavorites', undefined);
|
|
|
|
+ }
|
|
}
|
|
}
|