Hide frequency for QRT/test spots, change tag styling

pull/27/head
Manuel Kasper 2024-10-28 21:26:57 +01:00
rodzic 4815bfee65
commit 730f8e6a1e
3 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
<template>
<b-tag v-if="!type || type === 'NORMAL'" type="is-dark" :class="tagClass">{{ mode.toUpperCase() }}</b-tag>
<b-tag v-else type="is-dark" :class="tagClass">{{ type.toUpperCase() }}</b-tag>
<b-tag v-else-if="type === 'QRT'" type="is-warning">{{ type.toUpperCase() }}</b-tag>
<b-tag v-else-if="type === 'TEST'" type="is-dark" class="test">{{ type.toUpperCase() }}</b-tag>
</template>
<script>
@ -41,4 +42,7 @@ export default {
.tag.mode-fm {
background-color: #a7385a;
}
.tag.test {
background-color: #aaa;
}
</style>

Wyświetl plik

@ -1,7 +1,7 @@
<template>
<div class="card">
<div class="card-content">
<div class="freqmode">{{ spot.frequency | formatFrequency }} <ModeLabel :mode="spot.mode" :type="spot.type" /></div>
<div class="freqmode"><span v-if="!spot.type || spot.type === 'NORMAL'">{{ spot.frequency | formatFrequency }} </span><ModeLabel :mode="spot.mode" :type="spot.type" /></div>
<div class="time" v-html="formatTimeDay(spot.timeStamp)" />
<div class="callsign">
<template v-if="callsignLink">

Wyświetl plik

@ -27,7 +27,7 @@
</template>
</b-table-column>
<b-table-column field="frequency" label="Frequency" sortable :custom-sort="sortFrequency" numeric>
{{ props.row.frequency | formatFrequency }}
<span v-if="!props.row.type || props.row.type === 'NORMAL'">{{ props.row.frequency | formatFrequency }}</span>
</b-table-column>
<b-table-column field="mode" label="Mode" sortable>
<ModeLabel :mode="props.row.mode" :type="props.row.type" />