chore: more flexible modal manager types (#19123)
* fix: required argument in onClose modal function * chore: more flexible modal manager types
This commit is contained in:
+1
-1
@@ -200,7 +200,7 @@
|
||||
icon={mdiInformationOutline}
|
||||
aria-label={$t('deduplication_info')}
|
||||
size="small"
|
||||
onclick={() => modalManager.show(DuplicatesInformationModal, {})}
|
||||
onclick={() => modalManager.show(DuplicatesInformationModal)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
};
|
||||
|
||||
const onCreateNewLibraryClicked = async () => {
|
||||
const result = await modalManager.show(LibraryUserPickerModal, {});
|
||||
const result = await modalManager.show(LibraryUserPickerModal);
|
||||
if (result) {
|
||||
await handleCreate(result);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
};
|
||||
|
||||
const handleCreate = async () => {
|
||||
await modalManager.show(UserCreateModal, {});
|
||||
await modalManager.show(UserCreateModal);
|
||||
await refresh();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user