Apply suggestions from code review of branch image-capture

Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
Julian Stirling 2026-06-24 10:23:35 +00:00
parent 58dd3f2afe
commit d31d1154cc
4 changed files with 6 additions and 3 deletions

View file

@ -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;