Add antenna timeline explanation

This commit is contained in:
Laura Hausmann 2023-08-30 18:05:15 +02:00
parent 0952a37e86
commit dad82682e8
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
3 changed files with 12 additions and 0 deletions

View File

@ -424,6 +424,8 @@ withFileAntenna: "Only posts with files"
enableServiceworker: "Enable Push-Notifications for your Browser" enableServiceworker: "Enable Push-Notifications for your Browser"
antennaUsersDescription: "List one username per line" antennaUsersDescription: "List one username per line"
antennaInstancesDescription: "List one server host per line" antennaInstancesDescription: "List one server host per line"
antennaTimelineHint: "Antennas display matching posts in order they have been received in,
which is not necessarily chronological."
caseSensitive: "Case sensitive" caseSensitive: "Case sensitive"
withReplies: "Include replies" withReplies: "Include replies"
connectedTo: "Following account(s) are connected" connectedTo: "Following account(s) are connected"

View File

@ -101,6 +101,9 @@ if (props.src === "antenna") {
antennaId: props.antenna, antennaId: props.antenna,
}); });
connection.on("note", prepend); connection.on("note", prepend);
tlHint = i18n.ts.antennaTimelineHint;
tlHintClosed = defaultStore.state.tlAntennaHintClosed;
} else if (props.src === "home") { } else if (props.src === "home") {
endpoint = "notes/timeline"; endpoint = "notes/timeline";
query = { query = {
@ -220,6 +223,9 @@ function closeHint() {
case "global": case "global":
defaultStore.set("tlGlobalHintClosed", true); defaultStore.set("tlGlobalHintClosed", true);
break; break;
case "antenna":
defaultStore.set("tlAntennaHintClosed", true);
break;
} }
} }

View File

@ -46,6 +46,10 @@ export const defaultStore = markRaw(
where: "device", where: "device",
default: false, default: false,
}, },
tlAntennaHintClosed: {
where: "device",
default: false,
},
keepCw: { keepCw: {
where: "account", where: "account",
default: true, default: true,