summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-10 13:38:24 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-04-10 13:38:24 +0900
commitfb8ed718cec074bb021bf7d594bbd42dba558ef0 (patch)
tree163727de8634593bded7524fe5a72e71bcd6bca4 /src/client/components
parentrefactor(client): Use symbol (diff)
downloadsharkey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.tar.gz
sharkey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.tar.bz2
sharkey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.zip
Improve UI
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/timeline.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue
index c2ab0b005d..faa3984638 100644
--- a/src/client/components/timeline.vue
+++ b/src/client/components/timeline.vue
@@ -56,6 +56,7 @@ export default defineComponent({
includeLocalRenotes: this.$store.state.showLocalRenotes
},
query: {},
+ date: null
};
},
@@ -157,7 +158,7 @@ export default defineComponent({
endpoint: endpoint,
limit: 10,
params: init => ({
- untilDate: init ? undefined : (this.date ? this.date.getTime() : undefined),
+ untilDate: this.date?.getTime(),
...this.baseQuery, ...this.query
})
};
@@ -171,6 +172,11 @@ export default defineComponent({
methods: {
focus() {
this.$refs.tl.focus();
+ },
+
+ timetravel(date?: Date) {
+ this.date = date;
+ this.$refs.tl.reload();
}
}
});