summaryrefslogtreecommitdiff
path: root/src/client/pages/timeline.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-03 20:36:12 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-03 20:36:12 +0900
commit3c59c6fc9babd6f5e93b9a1eefe98abf69096ce2 (patch)
treeaac2fc2ec2508f5a3e0284bd065ed98d75da9269 /src/client/pages/timeline.vue
parentヘッダーの戻るボタンがページリロードすると消える問... (diff)
downloadmisskey-3c59c6fc9babd6f5e93b9a1eefe98abf69096ce2.tar.gz
misskey-3c59c6fc9babd6f5e93b9a1eefe98abf69096ce2.tar.bz2
misskey-3c59c6fc9babd6f5e93b9a1eefe98abf69096ce2.zip
Refactoring
Diffstat (limited to 'src/client/pages/timeline.vue')
-rw-r--r--src/client/pages/timeline.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/pages/timeline.vue b/src/client/pages/timeline.vue
index cefcf54b6d..af4de09af0 100644
--- a/src/client/pages/timeline.vue
+++ b/src/client/pages/timeline.vue
@@ -50,7 +50,7 @@ export default defineComponent({
queue: 0,
width: 0,
INFO: computed(() => {
- const header = [{
+ const tabs = [{
id: 'home',
title: null,
tooltip: this.$t('_timelines.home'),
@@ -60,7 +60,7 @@ export default defineComponent({
}];
if (!this.$store.state.instance.meta.disableLocalTimeline || this.$store.state.i.isModerator || this.$store.state.i.isAdmin) {
- header.push({
+ tabs.push({
id: 'local',
title: null,
tooltip: this.$t('_timelines.local'),
@@ -69,7 +69,7 @@ export default defineComponent({
selected: computed(() => this.src === 'local')
});
- header.push({
+ tabs.push({
id: 'social',
title: null,
tooltip: this.$t('_timelines.social'),
@@ -80,7 +80,7 @@ export default defineComponent({
}
if (!this.$store.state.instance.meta.disableGlobalTimeline || this.$store.state.i.isModerator || this.$store.state.i.isAdmin) {
- header.push({
+ tabs.push({
id: 'global',
title: null,
tooltip: this.$t('_timelines.global'),
@@ -90,7 +90,7 @@ export default defineComponent({
});
}
- header.push({
+ tabs.push({
id: 'other',
title: null,
icon: faEllipsisH,
@@ -99,7 +99,7 @@ export default defineComponent({
});
return {
- header,
+ tabs,
action: {
icon: faPencilAlt,
handler: () => os.post()