Konstantin Ladutenko 5 년 전
부모
커밋
4de3a4cf89
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      vue-cli3-webapp/src/components/GetLayerParameters.vue
  2. 2 2
      vue-cli3-webapp/src/components/GetMaterials.vue

+ 1 - 1
vue-cli3-webapp/src/components/GetLayerParameters.vue

@@ -75,7 +75,7 @@
         computed: {
             filteredMaterials: function () {
                 let tmp = []
-                for (const mat of this.materials) if (mat.inUse && mat.isLoaded) tmp.push(mat);
+                for (const mat of this.materials) if (mat.isUsed && mat.isLoaded) tmp.push(mat);
                 return tmp;
             }
         },

+ 2 - 2
vue-cli3-webapp/src/components/GetMaterials.vue

@@ -32,7 +32,7 @@
                         </tr>
                         </tfoot>
                         <tr v-for="material in materials" v-bind:key="material.name">
-                            <td><b-switch v-model="material.inUse"/>
+                            <td><b-switch v-model="material.isUsed"/>
 <!--                                <font-awesome-icon icon="check-circle" class="rh-input has-text-success" v-if="material.isLoaded">-->
 <!--                                    <span class="tooltiptext">test</span>-->
 <!--                                </font-awesome-icon>-->
@@ -75,7 +75,7 @@
                 this.materials.push({
                     fname: files[i],
                     name: names[i],
-                    isUse: true,
+                    isUsed: true,
                     isPlot: false,
                     isLoaded: false
                 });