[client] remove unimplemented timetravel button & handlers

Signed-off-by: Mae Dartmann <hello@maedartmann.name>
This commit is contained in:
Mae Dartmann 2024-06-24 23:05:42 +02:00
parent a695ffaf49
commit 50b25c88c7
No known key found for this signature in database
GPG key ID: 844402F3B2C2CDC5
3 changed files with 33 additions and 29 deletions

View file

@ -44,14 +44,15 @@ const keymap = $computed(() => ({
t: focus, t: focus,
})); }));
async function timetravel() { // removed for iceshrimp.dev/iceshrimp/iceshrimp !551
const { canceled, result: date } = await os.inputDate({ // async function timetravel() {
title: i18n.ts.date, // const { canceled, result: date } = await os.inputDate({
}); // title: i18n.ts.date,
if (canceled) return; // });
// if (canceled) return;
tlEl.timetravel(date); //
} // tlEl.timetravel(date);
// }
function settings() { function settings() {
router.push(`/my/antennas/${props.antennaId}`); router.push(`/my/antennas/${props.antennaId}`);

View file

@ -187,14 +187,15 @@ function saveSrc(
}); });
} }
async function timetravel(): Promise<void> { // removed for iceshrimp.dev/iceshrimp/iceshrimp !551
const { canceled, result: date } = await os.inputDate({ // async function timetravel(): Promise<void> {
title: i18n.ts.date, // const { canceled, result: date } = await os.inputDate({
}); // title: i18n.ts.date,
if (canceled) return; // });
// if (canceled) return;
tlComponent.timetravel(date); //
} // tlComponent.timetravel(date);
// }
function focus(): void { function focus(): void {
tlComponent.focus(); tlComponent.focus();

View file

@ -50,23 +50,25 @@ function settings() {
router.push(`/my/lists/${props.listId}`); router.push(`/my/lists/${props.listId}`);
} }
async function timetravel() { // removed for iceshrimp.dev/iceshrimp/iceshrimp !551
const { canceled, result: date } = await os.inputDate({ // async function timetravel() {
title: i18n.ts.date, // const { canceled, result: date } = await os.inputDate({
}); // title: i18n.ts.date,
if (canceled) return; // });
// if (canceled) return;
tlEl.timetravel(date); //
} // tlEl.timetravel(date);
// }
const headerActions = $computed(() => const headerActions = $computed(() =>
list list
? [ ? [
{ // removed for iceshrimp.dev/iceshrimp/iceshrimp !551
icon: "ph-calendar-blank ph-bold ph-lg", // {
text: i18n.ts.jumpToSpecifiedDate, // icon: "ph-calendar-blank ph-bold ph-lg",
handler: timetravel, // text: i18n.ts.jumpToSpecifiedDate,
}, // handler: timetravel,
// },
{ {
icon: "ph-gear-six ph-bold ph-lg", icon: "ph-gear-six ph-bold ph-lg",
text: i18n.ts.settings, text: i18n.ts.settings,