mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
fix(web): modal race condition (#19625)
* fix(web): modal race condition * fix: translation * fix: translation
This commit is contained in:
@@ -27,7 +27,7 @@ class ModalManager {
|
||||
const deferred = new Promise<StripValueIfOptional<K>>((resolve) => {
|
||||
onClose = async (...args: [StripValueIfOptional<K>]) => {
|
||||
await unmount(modal);
|
||||
resolve(args?.[0]);
|
||||
setTimeout(() => resolve(args?.[0]), 0);
|
||||
};
|
||||
|
||||
modal = mount(Component, {
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
$effect(() => {
|
||||
setTranslations({
|
||||
close: $t('close'),
|
||||
showPassword: $t('show_password'),
|
||||
hidePassword: $t('hide_password'),
|
||||
show_password: $t('show_password'),
|
||||
hide_password: $t('hide_password'),
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user