Skip to content

Commit

Permalink
fix (frontend): Refresh on note edit
Browse files Browse the repository at this point in the history
  • Loading branch information
HotoRas committed Aug 4, 2024
1 parent 38a412a commit 95a615e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ export function post(props: Record<string, any> = {}): Promise<void> {
// Vueが渡されたコンポーネントに内部的に__propsというプロパティを生やす影響で、
// 複数のpost formを開いたときに場合によってはエラーになる
// もちろん複数のpost formを開けること自体Misskeyサイドのバグなのだが
let dispose;
let dispose: () => void;
popup(MkPostFormDialog, props, {
closed: () => {
resolve();
Expand Down
4 changes: 3 additions & 1 deletion packages/frontend/src/scripts/get-note-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ export function getNoteMenu(props: {
text: i18n.ts.editConfirm,
}).then(({ canceled }) => {
if (canceled) return;
os.post({ initialNote: appearNote, renote: appearNote.renote, reply: appearNote.reply, channel: appearNote.channel, editMode: true });
os.post({ initialNote: appearNote, renote: appearNote.renote, reply: appearNote.reply, channel: appearNote.channel, editMode: true })
.then(() => { location.reload(); });
// 노트 수정 사항이 바로 반영되지 않는 문제 수정을 위해 일단 넣었습니다. 수정이 되면 강제 새로고침합니다.
});
}

Expand Down

0 comments on commit 95a615e

Please sign in to comment.