This PR will add a new image_preview property to asset annotation.
Adding this property will signal chaise that we should show a preview below the uploader UI in recordedit. So I had to add a displayImagePreview API to assets that chaise will use.
I also changed the default ermrestjs display of assets to add the image preview in this case. Given that to make this work in a compact table you would need to add max-width, we decided to not add this by default in compact views.
This PR will add a new
image_preview
property toasset
annotation.Adding this property will signal chaise that we should show a preview below the uploader UI in recordedit. So I had to add a
displayImagePreview
API to assets that chaise will use.I also changed the default ermrestjs display of assets to add the image preview in this case. Given that to make this work in a
compact
table you would need to addmax-width
, we decided to not add this by default in compact views.Related issue: chaise#2284