Disable upload button if filesToUpload is null (#856)
This commit is contained in:
parent
4c20759e37
commit
746a20bc4c
|
@ -492,6 +492,7 @@ export default function ProcessModelShow() {
|
||||||
open={showFileUploadModal}
|
open={showFileUploadModal}
|
||||||
modalHeading="Upload File"
|
modalHeading="Upload File"
|
||||||
primaryButtonText="Upload"
|
primaryButtonText="Upload"
|
||||||
|
primaryButtonDisabled={filesToUpload === null}
|
||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
onSecondarySubmit={handleFileUploadCancel}
|
onSecondarySubmit={handleFileUploadCancel}
|
||||||
onRequestClose={handleFileUploadCancel}
|
onRequestClose={handleFileUploadCancel}
|
||||||
|
|
Loading…
Reference in New Issue