checkpointy; hotfixy

This commit is contained in:
2024-02-10 22:42:35 +01:00
parent fc0c04ec9d
commit 90b2099955
11 changed files with 83 additions and 106 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export default defineComponent({
onlineDispatchersCount() {
return this.store.activeSceneryList.filter(
(scenery) => scenery.region == this.store.region.id
(scenery) => scenery.region == this.store.region.id && scenery.dispatcherId != -1
).length;
},
@@ -33,12 +33,12 @@
{{ (i > 0 && '•') || '' }}
<button
:key="cp.checkpointName"
:key="cp"
class="checkpoint_item"
:class="{ current: chosenCheckpoint === cp.checkpointName }"
:class="{ current: chosenCheckpoint === cp }"
@click="setCheckpoint(cp)"
>
{{ cp.checkpointName }}
{{ cp }}
</button>
</span>
</div>
@@ -231,7 +231,7 @@ export default defineComponent({
const chosenCheckpoint = ref(
props.station?.generalInfo?.checkpoints?.length == 0
? ''
: props.station?.generalInfo?.checkpoints[0].checkpointName || null
: props.station?.generalInfo?.checkpoints[0] ?? null
);
return {
@@ -278,12 +278,11 @@ export default defineComponent({
loadSelectedOption() {
if (!this.station) return;
this.chosenCheckpoint =
this.station.generalInfo?.checkpoints[0]?.checkpointName || this.station.name;
this.chosenCheckpoint = this.station.generalInfo?.checkpoints[0] ?? this.station.name;
},
setCheckpoint(cp: { checkpointName: string }) {
this.chosenCheckpoint = cp.checkpointName;
setCheckpoint(cp: string) {
this.chosenCheckpoint = cp;
}
}
});
+2 -3
View File
@@ -42,14 +42,13 @@ export interface Filter {
nonPublic: boolean;
unavailable: boolean;
abandoned: boolean;
endingStatus: boolean;
afkStatus: boolean;
noSpaceStatus: boolean;
unavailableStatus: boolean;
unsignedStatus: boolean;
authors: string;
onlineFromHours: number;
withActiveTimetables: boolean;
withoutActiveTimetables: boolean;
}