472d99a81a785956ece339852cc8a4b649d40e5d chmalee Thu Nov 7 11:10:57 2024 -0800 Automatically open the file editor when a file is chosen diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index 57e6bf0..4baf424 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1006,30 +1006,31 @@ onChange(e.target.value); } }}, makeTypeSelectOptions().map( (typeObj) => { return h('option', typeObj, typeObj.label); }) ); }, }); return fields; }, restricted: {requiredMetaFields: ["genome", "fileType"]}, closeModalOnClickOutside: true, closeAfterFinish: true, theme: 'auto', + autoOpen: "metaEditor", }; let tusOptions = { endpoint: getTusdEndpoint(), withCredentials: true, retryDelays: null, }; uppy.use(Uppy.Dashboard, uppyOptions); uppy.use(Uppy.Tus, tusOptions); uppy.use(BatchChangePlugin, {target: Uppy.Dashboard}); uppy.on('upload-success', (file, response) => { const metadata = file.meta; const d = new Date(metadata.lastModified); newReqObj = { "uploadTime": Date.now(), "lastModified": d.toJSON(),