diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.ts index 338de28f..4ff40f0c 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.ts @@ -41,4 +41,17 @@ export default class IO extends Vue { } + isConfigVisible(group,bankid){ + var vis = false; + var it = this.items[group].filter(i => i.bank == bankid); + + for (let index = 0; index < it.length; index++) { + if(it[index].visible){ + vis = true; + break; + } + } + return vis + } + } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.vue index b918884a..c01f8768 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/io/io.vue @@ -9,6 +9,7 @@ @click="scrollto(true,`input-${group}-${inputid}`)" class="upper" v-for="(inputid, idx2) in config[group]" + v-if="isConfigVisible(group,inputid)" :key="`h-${idx}-${idx2}`" >{{`${group} ${inputid}`}} @@ -24,6 +25,7 @@ @click="scrollto(false,`output-${group}-${inputid}`)" class="upper" v-for="(inputid, idx2) in config[group]" + v-if="isConfigVisible(group,inputid)" :key="`h-${idx}-${idx2}`" >{{`${group} ${inputid}`}} diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/inputTab/input-row-item.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/inputTab/input-row-item.vue index 15155b20..b9cd4a70 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/inputTab/input-row-item.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/sotto-cofano/InputOutput/components/tables/inputTab/input-row-item.vue @@ -1,5 +1,5 @@