mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[client] remove unimplemented timetravel button & handlers
Signed-off-by: Mae Dartmann <hello@maedartmann.name>
This commit is contained in:
parent
a695ffaf49
commit
50b25c88c7
3 changed files with 33 additions and 29 deletions
|
@ -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}`);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue