Skip to content

Commit dbac0d1

Browse files
authored
Merge pull request #227 from Geode-solutions/fix/unitTests
Fix/refactoId
2 parents f42f0d3 + bbe6bd7 commit dbac0d1

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

components/Viewer/Options/PolygonAttributeSelector.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<script setup>
1111
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
1212
13-
const dataBaseStore = useDataBaseStore()
14-
1513
const props = defineProps({
1614
id: { type: String, required: true },
1715
})
@@ -21,10 +19,6 @@
2119
const polygon_attribute_names = ref([])
2220
const polygon_attribute = reactive({ name: polygon_attribute_name.value })
2321
24-
const meta_data = computed(() => {
25-
return dataBaseStore.itemMetaDatas(props.id)
26-
})
27-
2822
onMounted(() => {
2923
if (model.value != null) {
3024
polygon_attribute_name.value = model.value.name
@@ -45,8 +39,7 @@
4539
{
4640
schema: back_schemas.opengeodeweb_back.polygon_attribute_names,
4741
params: {
48-
input_geode_object: meta_data.value.geode_object,
49-
filename: meta_data.value.native_filename,
42+
id: props.id,
5043
},
5144
},
5245
{

components/Viewer/Options/PolyhedronAttributeSelector.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
id: { type: String, required: true },
3333
})
3434
35-
const dataBaseStore = useDataBaseStore()
36-
3735
const polyhedron_attribute_names = ref([])
38-
const meta_data = computed(() => {
39-
return dataBaseStore.itemMetaDatas(props.id)
40-
})
4136
4237
onMounted(() => {
4338
getVertexAttributes()
@@ -48,8 +43,7 @@
4843
{
4944
schema: back_schemas.opengeodeweb_back.polyhedron_attribute_names,
5045
params: {
51-
input_geode_object: meta_data.value.geode_object,
52-
filename: meta_data.value.native_filename,
46+
id: props.id,
5347
},
5448
},
5549
{

components/Viewer/Options/TextureItem.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
<script setup>
3939
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
4040
41-
const dataBaseStore = useDataBaseStore()
42-
4341
const emit = defineEmits(["update_value"])
4442
4543
const props = defineProps({
@@ -56,10 +54,6 @@
5654
5755
const texture_coordinates = ref([])
5856
59-
const meta_data = computed(() => {
60-
return dataBaseStore.itemMetaDatas(props.id)
61-
})
62-
6357
onMounted(() => {
6458
getTextureCoordinates()
6559
})
@@ -69,8 +63,7 @@
6963
{
7064
schema: back_schemas.opengeodeweb_back.texture_coordinates,
7165
params: {
72-
input_geode_object: meta_data.value.geode_object,
73-
filename: meta_data.value.native_filename,
66+
id: props.id,
7467
},
7568
},
7669
{

components/Viewer/Options/VertexAttributeSelector.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
const dataBaseStore = useDataBaseStore()
3434
3535
const vertex_attribute_names = ref([])
36-
const meta_data = computed(() => {
37-
return dataBaseStore.itemMetaDatas(props.id)
38-
})
3936
4037
onMounted(() => {
4138
getVertexAttributes()
@@ -46,8 +43,7 @@
4643
{
4744
schema: back_schemas.opengeodeweb_back.vertex_attribute_names,
4845
params: {
49-
input_geode_object: meta_data.value.geode_object,
50-
filename: meta_data.value.native_filename,
46+
id: props.id,
5147
},
5248
},
5349
{

0 commit comments

Comments
 (0)