SES-159 #78
@ -25,7 +25,11 @@ export class GameMasterTurntrackerComponent implements OnInit, OnDestroy {
|
|||||||
monsterId: number;
|
monsterId: number;
|
||||||
}[] = [];
|
}[] = [];
|
||||||
|
|
||||||
characterList: { name: string; characterId: number }[] = [];
|
characterList: {
|
||||||
|
name: string;
|
||||||
|
characterId: number;
|
||||||
|
monsterId: number;
|
||||||
|
}[] = [];
|
||||||
|
|
||||||
drop(event: CdkDragDrop<any[]>) {
|
drop(event: CdkDragDrop<any[]>) {
|
||||||
if (event.previousContainer === event.container) {
|
if (event.previousContainer === event.container) {
|
||||||
@ -52,7 +56,9 @@ export class GameMasterTurntrackerComponent implements OnInit, OnDestroy {
|
|||||||
.select((s) => s.gameMasterStore.turnTrackerList)
|
.select((s) => s.gameMasterStore.turnTrackerList)
|
||||||
.pipe(first())
|
.pipe(first())
|
||||||
.subscribe((result) => {
|
.subscribe((result) => {
|
||||||
|
if (result.length > 0) {
|
||||||
this.turnTrackerList = result;
|
this.turnTrackerList = result;
|
||||||
|
}
|
||||||
this.GetLoggedCharacters();
|
this.GetLoggedCharacters();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -72,6 +78,7 @@ export class GameMasterTurntrackerComponent implements OnInit, OnDestroy {
|
|||||||
.map((e) => ({
|
.map((e) => ({
|
||||||
name: e.name,
|
name: e.name,
|
||||||
characterId: e.id,
|
characterId: e.id,
|
||||||
|
monsterId: null,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user