1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-30 00:00:13 +01:00

Edit image widget: show 'No files found' if no image files are available #267

This commit is contained in:
Laura Fuentes Grau 2020-11-15 15:07:11 +01:00
parent c7281835d3
commit 162ea6a8f6

View file

@ -55,7 +55,7 @@ class EditFileWidgetControl extends React.Component {
<option key={index+1} value={file.id}>{file.name}</option> <option key={index+1} value={file.id}>{file.name}</option>
))) )))
} else { } else {
fileOptions = <option disabled value style={{ display: 'none' }}>No files found, please upload one first.</option> fileOptions = <option style={{ display: 'none' }}>No files found</option>
} }
return <div> return <div>