feature: open spawns tooltip

This commit is contained in:
2024-05-06 17:36:23 +02:00
parent d366a877a4
commit 871b2c0221
7 changed files with 354 additions and 73 deletions
+4 -3
View File
@@ -260,8 +260,8 @@
<td
class="station-spawns"
:class="{ inactive: !station.onlineInfo }"
data-tooltip-type="TestTooltip"
data-tooltip-content="test123"
data-tooltip-type="SpawnsTooltip"
:data-tooltip-content="JSON.stringify(station.onlineInfo?.spawns ?? [])"
>
<span>{{ station.onlineInfo?.spawns.length ?? '-' }}</span>
</td>
@@ -302,7 +302,7 @@
</template>
<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { defineComponent } from 'vue';
import dateMixin from '../../mixins/dateMixin';
import styleMixin from '../../mixins/styleMixin';
import { useStationFiltersStore } from '../../store/stationFiltersStore';
@@ -358,6 +358,7 @@ export default defineComponent({
if (!station) return;
this.lastSelectedStationName = station.name;
this.tooltipStore.hide();
this.$router.push({
name: 'SceneryView',