Skip to content

Commit

Permalink
Fix MkMenu rather than usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Dec 5, 2023
1 parent 26642f8 commit 29b729e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function focusDown() {
}

function switchItem(item: MenuSwitch & { ref: any }) {
if (typeof item.disabled === 'boolean' ? item.disabled : item.disabled.value) return;
if (item.disabled !== undefined && (typeof item.disabled === 'boolean' ? item.disabled : item.disabled.value)) return;
item.ref = !item.ref;
}

Expand Down
1 change: 0 additions & 1 deletion packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ const headerActions = $computed(() => {
type: 'switch',
text: i18n.ts.showRenotes,
ref: $$(withRenotes),
disabled: false,
}, src === 'local' || src === 'social' ? {
type: 'switch',
text: i18n.ts.showRepliesToOthersInTimeline,
Expand Down

0 comments on commit 29b729e

Please sign in to comment.