mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 00:08:31 +09:00
fix(frontend): '길게 눌러 계정 메뉴 열기' 기능이 제대로 작동하지 않음
This commit is contained in:
parent
2f745ec07d
commit
f714b405fc
@ -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,
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user