Show a decent title for signals
This commit is contained in:
parent
8594723a0d
commit
55c8b8f1dd
2 changed files with 13 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue