[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,
}));
async function timetravel() {
const { canceled, result: date } = await os.inputDate({
title: i18n.ts.date,
});
if (canceled) return;
tlEl.timetravel(date);
}
// removed for iceshrimp.dev/iceshrimp/iceshrimp !551
// async function timetravel() {
// const { canceled, result: date } = await os.inputDate({
// title: i18n.ts.date,
// });
// if (canceled) return;
//
// tlEl.timetravel(date);
// }
function settings() {
router.push(`/my/antennas/${props.antennaId}`);

View file

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

View file

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