mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(web): modal race condition (#19625)
* fix(web): modal race condition * fix: translation * fix: translation
This commit is contained in:
parent
181a7e115f
commit
53020852ec
5 changed files with 53 additions and 51 deletions
|
|
@ -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'),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue