This commit is contained in:
tamaina 2023-08-04 14:14:09 +00:00
parent 68a2d9675f
commit 5a3d7f9ef8
3 changed files with 12 additions and 2 deletions

View File

@ -58,10 +58,16 @@ function onModalClosed() {
function hide() {
manualShowing.value = false;
hiding.value = true;
// close
modal?.close();
}
function close() {
manualShowing.value = false;
// close
modal?.close();
}
</script>

View File

@ -418,7 +418,9 @@ export function getNoteMenu(props: {
const cleanup = () => {
if (_DEV_) console.log('note menu cleanup', cleanups);
cleanups.forEach(cleanup => cleanup());
for (const cl of cleanups) {
cl();
}
};
return {

View File

@ -330,7 +330,9 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
const cleanup = () => {
if (_DEV_) console.log('user menu cleanup', cleanups);
cleanups.forEach(cleanup => cleanup());
for (const cl of cleanups) {
cl();
}
};
return {