mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 09:14:05 +02:00
fix(frontend): ログインダイアログが表示されたあとの処理がおかしくなる問題を修正 (#17038)
* fix(frontend): ログインダイアログが表示されたあとの処理がおかしくなる問題を修正 * Update Changelog
This commit is contained in:
@@ -709,8 +709,8 @@ export function contextMenu(items: MenuItem[], ev: MouseEvent): Promise<void> {
|
||||
}));
|
||||
}
|
||||
|
||||
export function post(props: PostFormProps = {}): Promise<void> {
|
||||
pleaseLogin({
|
||||
export async function post(props: PostFormProps = {}): Promise<void> {
|
||||
const isLoggedIn = await pleaseLogin({
|
||||
openOnRemote: (props.initialText || props.initialNote ? {
|
||||
type: 'share',
|
||||
params: {
|
||||
@@ -720,6 +720,7 @@ export function post(props: PostFormProps = {}): Promise<void> {
|
||||
},
|
||||
} : undefined),
|
||||
});
|
||||
if (!isLoggedIn) return;
|
||||
|
||||
showMovedDialog();
|
||||
return new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user