1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00

fix(frontend): '길게 눌러 계정 메뉴 열기' 기능이 제대로 작동하지 않음

This commit is contained in:
NoriDev 2023-12-18 19:47:38 +09:00
parent 2f745ec07d
commit f714b405fc
2 changed files with 4 additions and 4 deletions

View File

@ -248,8 +248,8 @@ export async function login(token: Account['token'], redirect?: string) {
export async function openAccountMenu(opts: {
includeCurrentAccount?: boolean;
withExtraOperation: boolean;
withExtraOperationFriendly: boolean;
withExtraOperation?: boolean;
withExtraOperationFriendly?: boolean;
active?: Misskey.entities.UserDetailed['id'];
onChoose?: (account: Misskey.entities.UserDetailed) => void;
}, ev: MouseEvent) {
@ -369,7 +369,7 @@ export async function openAccountMenu(opts: {
text: i18n.ts.profile,
to: `/@${$i.username}`,
avatar: $i,
}, null, ...(opts.includeCurrentAccount ? [createItem($i)] : []), ...accountItemPromises, {
}, { type: 'divider' }, ...(opts.includeCurrentAccount ? [createItem($i)] : []), ...accountItemPromises, {
type: 'parent' as const,
icon: 'ti ti-plus',
text: i18n.ts.addAccount,

View File

@ -312,7 +312,7 @@ function queueUpdated(q: number): void {
queue.value = q;
}
function openAccountMenu(ev: MouseEvent) {
function openAccountMenu(ev: TouchEvent) {
if (defaultStore.state.enableLongPressOpenAccountMenu) {
longTouchNavHome.value = true;
setTimeout(() => {