diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-10 15:40:58 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-10 15:40:58 +1000 |
| commit | 3d895370a608d4f51726b74e2560dcf5f4ec43a8 (patch) | |
| tree | c46c1660e615f0a82fd2fa511c0b6b9bac2f311d | |
| parent | 81124cde7b1838248c41f8fbfce83db9e935e5b4 (diff) | |
Add quotes around displayed alt-names
| -rw-r--r-- | backend/data/README.md | 2 | ||||
| -rw-r--r-- | src/components/Tile.vue | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/backend/data/README.md b/backend/data/README.md index 209a2cc..9f0ea82 100644 --- a/backend/data/README.md +++ b/backend/data/README.md @@ -15,7 +15,7 @@ File Generation Process 1 Use downloadImgsForReview.py to download EOL images into imgsForReview/. It uses data in eol/imagesList.db, and the 'eol\_ids' table. 2 Use reviewImgs.py to filter images in imgsForReview/ into EOL-id-unique - images in imgsReviewed/ (uses 'names' and 'eol_ids' to display extra info). + images in imgsReviewed/ (uses 'names' and 'eol\_ids' to display extra info). 3 Use genImgsForWeb.py to create cropped/resized images in img/, using images in imgsReviewed, and also to add an 'images' table to data.db. 4 Node Description Data diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 08f3c9b..5772e0a 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -47,6 +47,11 @@ export default defineComponent({ (this.layoutNode.sepSweptArea != null && this.layoutNode.sepSweptArea.sweptLeft); }, displayName(): string { + if (this.tolNode.commonName != null){ + return "'" + capitalizeWords(this.tolNode.commonName) + "'"; + } else { + return capitalizeWords(this.layoutNode.name); + } return capitalizeWords(this.tolNode.commonName || this.layoutNode.name); }, isOverflownRoot(): boolean { |
