fix: enable uppy informer for airgapped instances (#23003)
(cherry picked from commit 99f8fa6aef)
This commit is contained in:
parent
d69b35623c
commit
b84caa7805
|
|
@ -7,10 +7,8 @@ import { USER_PHOTO_ASSET_URL } from "constants/userConstants";
|
|||
import { DisplayImageUpload } from "design-system-old";
|
||||
|
||||
import type Uppy from "@uppy/core";
|
||||
import { isAirgapped } from "@appsmith/utils/airgapHelpers";
|
||||
|
||||
function FormDisplayImage() {
|
||||
const isAirgappedInstance = isAirgapped();
|
||||
const [file, setFile] = useState<any>();
|
||||
const dispatch = useDispatch();
|
||||
const user = useSelector(getCurrentUser);
|
||||
|
|
@ -55,7 +53,6 @@ function FormDisplayImage() {
|
|||
|
||||
return (
|
||||
<DisplayImageUpload
|
||||
disableUppyInformer={isAirgappedInstance}
|
||||
onChange={onSelectFile}
|
||||
onRemove={removeProfileImage}
|
||||
submit={upload}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ import FilePickerComponent from "../component";
|
|||
import FileDataTypes from "../constants";
|
||||
import { DefaultAutocompleteDefinitions } from "widgets/WidgetUtils";
|
||||
import type { AutocompletionDefinitions } from "widgets/constants";
|
||||
import { isAirgapped } from "@appsmith/utils/airgapHelpers";
|
||||
|
||||
const CSV_ARRAY_LABEL = "Array (CSVs only)";
|
||||
const CSV_FILE_TYPE_REGEX = /.+(\/csv)$/;
|
||||
|
|
@ -40,8 +39,6 @@ const isCSVFileType = (str: string) => CSV_FILE_TYPE_REGEX.test(str);
|
|||
|
||||
type Result = string | Buffer | ArrayBuffer | null;
|
||||
|
||||
const isAirgappedInstance = isAirgapped();
|
||||
|
||||
const FilePickerGlobalStyles = createGlobalStyle<{
|
||||
borderRadius?: string;
|
||||
}>`
|
||||
|
|
@ -611,7 +608,7 @@ class FilePickerWidget extends BaseWidget<
|
|||
closeAfterFinish: true,
|
||||
closeModalOnClickOutside: true,
|
||||
disableStatusBar: false,
|
||||
disableInformer: isAirgappedInstance,
|
||||
disableInformer: false,
|
||||
disableThumbnailGenerator: false,
|
||||
disablePageScrollWhenModalOpen: true,
|
||||
proudlyDisplayPoweredByUppy: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user