Show a decent title for signals

This commit is contained in:
Eli Ribble 2026-03-23 16:05:05 -07:00
parent 8594723a0d
commit 55c8b8f1dd
No known key found for this signature in database
2 changed files with 13 additions and 4 deletions

View file

@ -197,7 +197,7 @@
<script setup lang="ts">
import { ref } from "vue";
import { shortAddress } from "../format";
import PlanningColumnListEntry from "@/components/PlanningColumnListEntry.vue";
interface Emits {
(e: "refresh"): void;

View file

@ -1,5 +1,5 @@
<template>
<div class="small fw-semibold">{{ signal.title }}</div>
<div class="small fw-semibold">{{ title(signal) }}</div>
<div class="signal-address">
{{ shortAddress(signal.address) }}
</div>
@ -8,9 +8,18 @@
{{ signal.badge }}
</span>
</template>
<script lang="ts">
<script setup lang="ts">
import { shortAddress } from "../format";
interface Props {
signal: Signal;
}
};
const props = defineProps<Props>();
function title(signal: Signal): string {
if (signal.type == "flyover pool") {
return "Green pool";
} else {
return "Unknown signal";
}
}
</script>