Apply suggestions from code review of branch image-capture
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
parent
58dd3f2afe
commit
d31d1154cc
4 changed files with 6 additions and 3 deletions
|
|
@ -112,6 +112,9 @@ export default {
|
|||
}
|
||||
return `${this.baseUri}/data/${this.itemData.thing}/${this.itemData.name}`;
|
||||
},
|
||||
/**
|
||||
* Return True if there is a viewer available for this card's data.
|
||||
*/
|
||||
viewerAvailable() {
|
||||
if (this.itemData.card_type === "Scan") return Boolean(this.itemData?.dzi);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue