From b1e089801da6332591ccfe99ba0a6c157eb64760 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 28 Jan 2024 19:53:42 -0700 Subject: [PATCH] Add region specific default images Signed-off-by: Justin Georgi --- src/components/svg-icon.vue | 10 +++++++++- src/pages/detect.vue | 26 +++++++++++++------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/svg-icon.vue b/src/components/svg-icon.vue index 5cba434..51475b5 100644 --- a/src/components/svg-icon.vue +++ b/src/components/svg-icon.vue @@ -10,6 +10,10 @@ + + + + @@ -30,7 +34,11 @@ 'cloud_upload', 'cloud_done', 'check_list', - 'refresh_search' + 'refresh_search', + 'thorax', + 'abdomen', + 'limbs', + 'head' ] return iconList.includes(value) } diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 2defbd6..406932d 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -7,7 +7,7 @@
- +
- + @@ -80,15 +80,15 @@ - - - + + + @@ -319,19 +319,19 @@ created () { switch (this.f7route.params.region) { case 'thorax': - this.activeRegion = 0 - this.detectorName = 'thorax' + this.activeRegion = 0 + this.detectorName = 'thorax' break; case 'abdomen': - this.activeRegion = 1 - this.detectorName = 'combined' - break; + this.activeRegion = 1 + this.detectorName = 'combined' + break; case 'limbs': - this.activeRegion = 2 - this.detectorName = 'defaultNew' + this.activeRegion = 2 + this.detectorName = 'defaultNew' break; case 'head': - this.activeRegion = 3 + this.activeRegion = 3 break; } var loadServerSettings = localStorage.getItem('serverSettings')