Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.2.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.4.x

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Apr 11, 2024
2 parents e8cd505 + 2635461 commit c32f5da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions dockerfiles/image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ incr() {
install() {
if [ -d $DEB_FILE ]; then
MODE=debug
create_build_image
create_platform_core_image $RELEASE_BASE_IMAGE
finalize_platform_core_image_from_folder $DEB_FILE
elif [ -f $DEB_FILE ]; then
Expand Down
12 changes: 11 additions & 1 deletion esp/src/src-react/components/forms/landing-zone/FileListForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ import { TargetDropzoneTextField, TargetFolderTextField, TargetServerTextField }
import { joinPath } from "src/Utility";
import nlsHPCC from "src/nlsHPCC";
import { MessageBox } from "../../../layouts/MessageBox";
import { debounce } from "../../../util/throttle";
import * as FormStyles from "./styles";

const logger = scopedLogger("src-react/components/forms/landing-zone/FileListForm.tsx");

const myFileSprayService = new FileSprayService({ baseUrl: "" });

const targetFolderTextChange = debounce((text, directory, onChange) => {
onChange(directory + text);
}, 200);

interface FileListFormValues {
dropzone: string;
machines: string;
Expand Down Expand Up @@ -61,6 +66,8 @@ export const FileListForm: React.FunctionComponent<FileListFormProps> = ({

const closeForm = React.useCallback(() => {
setShowForm(false);
const uploaderBtn = document.querySelector("#uploaderBtn");
uploaderBtn["value"] = null;
}, [setShowForm]);

const doSubmit = React.useCallback((data) => {
Expand Down Expand Up @@ -235,8 +242,11 @@ export const FileListForm: React.FunctionComponent<FileListFormProps> = ({
machineOS={os}
required={true}
placeholder={nlsHPCC.SelectValue}
onInputValueChange={(text) => targetFolderTextChange(text, directory, onChange)}
onChange={(evt, option) => {
onChange(option.key);
if (option?.key) {
onChange(option.key);
}
}}
errorMessage={error && error?.message}
/>}
Expand Down

0 comments on commit c32f5da

Please sign in to comment.