Edit DME & MRT Callsign & Date display
This commit is contained in:
@@ -67,7 +67,7 @@ export const useMrtStore = create<MrtStore>(
|
|||||||
page: "home",
|
page: "home",
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
textLeft: `VAR#.${station?.bosCallsign}`,
|
textLeft: `${station?.bosCallsign}`,
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
textSize: "2",
|
textSize: "2",
|
||||||
},
|
},
|
||||||
@@ -92,7 +92,7 @@ export const useMrtStore = create<MrtStore>(
|
|||||||
page: "sending-status",
|
page: "sending-status",
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
textLeft: `VAR#.${station?.bosCallsign}`,
|
textLeft: `${station?.bosCallsign}`,
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
textSize: "2",
|
textSize: "2",
|
||||||
},
|
},
|
||||||
@@ -116,7 +116,7 @@ export const useMrtStore = create<MrtStore>(
|
|||||||
page: "new-status",
|
page: "new-status",
|
||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
textLeft: `VAR#.${station?.bosCallsign}`,
|
textLeft: `${station?.bosCallsign}`,
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
textSize: "2",
|
textSize: "2",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -75,13 +75,17 @@ export const useDmeStore = create<MrtStore>(
|
|||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
textMid: pageData.station.bosCallsign
|
textMid: pageData.station.bosCallsign
|
||||||
? `VAR#.${pageData.station.bosCallsign}`
|
? `${pageData.station.bosCallsign}`
|
||||||
: "no Data",
|
: "no Data",
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
},
|
},
|
||||||
{ textMid: "⠀" },
|
{ textMid: "⠀" },
|
||||||
{
|
{
|
||||||
textMid: new Date().toLocaleDateString(),
|
textMid: new Date().toLocaleDateString("de-DE", {
|
||||||
|
year: "numeric",
|
||||||
|
month: "2-digit",
|
||||||
|
day: "2-digit",
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
textMid: new Date().toLocaleTimeString(),
|
textMid: new Date().toLocaleTimeString(),
|
||||||
@@ -122,9 +126,7 @@ export const useDmeStore = create<MrtStore>(
|
|||||||
lines: [
|
lines: [
|
||||||
{
|
{
|
||||||
textLeft: `${pageData.mission.missionKeywordAbbreviation}`,
|
textLeft: `${pageData.mission.missionKeywordAbbreviation}`,
|
||||||
textRight: pageData.mission.Stations.map(
|
textRight: pageData.mission.Stations.map((s) => s.bosCallsignShort).join(","),
|
||||||
(s) => s.bosCallsignShort,
|
|
||||||
).join(","),
|
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -140,16 +142,14 @@ export const useDmeStore = create<MrtStore>(
|
|||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
textLeft:
|
textLeft: pageData.mission.missionPatientInfo || "keine Daten",
|
||||||
pageData.mission.missionPatientInfo || "keine Daten",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
textMid: "Weitere Infos:",
|
textMid: "Weitere Infos:",
|
||||||
style: { fontWeight: "bold" },
|
style: { fontWeight: "bold" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
textLeft:
|
textLeft: pageData.mission.missionAdditionalInfo || "keine Daten",
|
||||||
pageData.mission.missionAdditionalInfo || "keine Daten",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user