Commit 7b8c717a authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

add file filter

parent 89a3c28e
......@@ -23,8 +23,8 @@ const fsleyesSocket = io(`ws://${host}:${socketServerPort}`)
const nv = new Niivue({clipPlaneColor:[0, 0, 0, 0]})
async function addNiiVueImage(url, color='red') {
let img = await NVImage.loadFromUrl(url,'',color,0.8)
async function addNiiVueImage(url, color='redyell') {
let img = await NVImage.loadFromUrl(url,'',color,1)
console.log(img)
nv.addVolume(img)
}
......@@ -67,7 +67,7 @@ function InputField({text, updateBetOptsValue}) {
<Button
variant='contained'
style={{margin:0, marginLeft: 12}}
onClick={()=>{inFileSocket.emit('files')}}
onClick={()=>{inFileSocket.emit('files', {filters:[{name: 'NIFTI', extensions:['nii','nii.gz']}]})}}
>
Choose
</Button>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment