diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-03 20:36:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-03 20:36:12 +0900 |
| commit | 3c59c6fc9babd6f5e93b9a1eefe98abf69096ce2 (patch) | |
| tree | aac2fc2ec2508f5a3e0284bd065ed98d75da9269 /src/client/pages/timeline.vue | |
| parent | ヘッダーの戻るボタンがページリロードすると消える問... (diff) | |
| download | misskey-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.vue | 12 |
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() |