Feature: add auto open share modal config for global. (#474)

* feat(admin): add auto open share modal config for global.

* feat(upload): Apply the flag that disables the automatic open create share modal.

* fix: remove migration and add new config variable to seed script

* chore(translations): improve auto open share modal description

* refactor: run formatter

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Ivan Li
2024-06-10 17:32:52 +08:00
committed by GitHub
parent 1c7832ad1f
commit 4fd29037a0
10 changed files with 1652 additions and 18 deletions

View File

@@ -36,12 +36,12 @@ const Dropzone = ({
title,
isUploading,
maxShareSize,
showCreateUploadModalCallback,
onFilesChanged,
}: {
title?: string;
isUploading: boolean;
maxShareSize: number;
showCreateUploadModalCallback: (files: FileUpload[]) => void;
onFilesChanged: (files: FileUpload[]) => void;
}) => {
const t = useTranslate();
@@ -69,7 +69,7 @@ const Dropzone = ({
newFile.uploadingProgress = 0;
return newFile;
});
showCreateUploadModalCallback(files);
onFilesChanged(files);
}
}}
className={classes.dropzone}