Remove IHI slidescan from features settings
This commit is contained in:
parent
c8906008ed
commit
b23d6043c5
3 changed files with 4 additions and 41 deletions
|
|
@ -279,22 +279,14 @@ export default {
|
||||||
component: navigateContent
|
component: navigateContent
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "capture",
|
|
||||||
icon: "camera_alt",
|
|
||||||
component: captureContent,
|
|
||||||
divide: true // Add a divider after this tab icon
|
|
||||||
}
|
|
||||||
];
|
|
||||||
if (!this.$store.state.galleryEnabled) {
|
|
||||||
tabs = tabs.filter(tab => tab.id != "gallery");
|
|
||||||
}
|
|
||||||
if (this.$store.state.IHIEnabled) {
|
|
||||||
tabs.push({
|
|
||||||
id: "slidescan",
|
id: "slidescan",
|
||||||
icon: "settings_overscan",
|
icon: "settings_overscan",
|
||||||
component: slideScanContent,
|
component: slideScanContent,
|
||||||
divide: true
|
divide: true
|
||||||
});
|
}
|
||||||
|
];
|
||||||
|
if (!this.$store.state.galleryEnabled) {
|
||||||
|
tabs = tabs.filter(tab => tab.id != "gallery");
|
||||||
}
|
}
|
||||||
if (this.$store.state.imjoyEnabled) {
|
if (this.$store.state.imjoyEnabled) {
|
||||||
tabs.push({
|
tabs.push({
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="appSettings" class="uk-width-large">
|
<div id="appSettings" class="uk-width-large">
|
||||||
<h3>Additional features</h3>
|
<h3>Additional features</h3>
|
||||||
<p class="uk-margin-small">
|
|
||||||
<label
|
|
||||||
><input v-model="IHIEnabled" class="uk-checkbox" type="checkbox" />
|
|
||||||
Enable IHI Slide Scan</label
|
|
||||||
>
|
|
||||||
</p>
|
|
||||||
<p class="uk-margin-small">
|
|
||||||
Enabling IHI Slide Scan will add a new tab designed to simplify acquiring
|
|
||||||
blood smear tile scans. <br />
|
|
||||||
While this may be useful for other applications, it is primarily designed
|
|
||||||
for use in clinics acquiring blood smear samples using a 100x
|
|
||||||
oil-immersion objective, with a Raspberry Pi Camera v2.
|
|
||||||
</p>
|
|
||||||
<p class="uk-margin-small" :class="{ 'uk-text-muted': !imjoyPermitted }">
|
<p class="uk-margin-small" :class="{ 'uk-text-muted': !imjoyPermitted }">
|
||||||
<label :disabled="!imjoyPermitted">
|
<label :disabled="!imjoyPermitted">
|
||||||
<input
|
<input
|
||||||
|
|
@ -57,14 +44,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
IHIEnabled: {
|
|
||||||
get() {
|
|
||||||
return this.$store.state.IHIEnabled;
|
|
||||||
},
|
|
||||||
set(value) {
|
|
||||||
this.$store.commit("changeIHIEnabled", value);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
imjoyEnabled: {
|
imjoyEnabled: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.imjoyEnabled;
|
return this.$store.state.imjoyEnabled;
|
||||||
|
|
@ -90,9 +69,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
IHIEnabled: function() {
|
|
||||||
this.setLocalStorageObj("IHIEnabled", this.IHIEnabled);
|
|
||||||
},
|
|
||||||
imjoyEnabled: function() {
|
imjoyEnabled: function() {
|
||||||
this.setLocalStorageObj("imjoyEnabled", this.imjoyEnabled);
|
this.setLocalStorageObj("imjoyEnabled", this.imjoyEnabled);
|
||||||
},
|
},
|
||||||
|
|
@ -103,7 +79,6 @@ export default {
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
// Try loading settings from localStorage. If null, don't change.
|
// Try loading settings from localStorage. If null, don't change.
|
||||||
this.IHIEnabled = this.getLocalStorageObj("IHIEnabled") || this.IHIEnabled;
|
|
||||||
this.imjoyEnabled =
|
this.imjoyEnabled =
|
||||||
this.getLocalStorageObj("imjoyEnabled") || this.imjoyEnabled;
|
this.getLocalStorageObj("imjoyEnabled") || this.imjoyEnabled;
|
||||||
this.galleryEnabled =
|
this.galleryEnabled =
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,6 @@ export default new Vuex.Store({
|
||||||
disableStream: false,
|
disableStream: false,
|
||||||
autoGpuPreview: false,
|
autoGpuPreview: false,
|
||||||
trackWindow: true,
|
trackWindow: true,
|
||||||
IHIEnabled: false,
|
|
||||||
imjoyEnabled: false,
|
imjoyEnabled: false,
|
||||||
galleryEnabled: true,
|
galleryEnabled: true,
|
||||||
appTheme: "system",
|
appTheme: "system",
|
||||||
|
|
@ -114,9 +113,6 @@ export default new Vuex.Store({
|
||||||
changeAppTheme(state, theme) {
|
changeAppTheme(state, theme) {
|
||||||
state.appTheme = theme;
|
state.appTheme = theme;
|
||||||
},
|
},
|
||||||
changeIHIEnabled(state, enabled) {
|
|
||||||
state.IHIEnabled = enabled;
|
|
||||||
},
|
|
||||||
changeImjoyEnabled(state, enabled) {
|
changeImjoyEnabled(state, enabled) {
|
||||||
if (process.env.VUE_APP_ENABLE_IMJOY === "true") {
|
if (process.env.VUE_APP_ENABLE_IMJOY === "true") {
|
||||||
state.imjoyEnabled = enabled;
|
state.imjoyEnabled = enabled;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue