|
17 | 17 | <v-card class="card" variant="tonal" elevation="5" rounded> |
18 | 18 | <v-card-text> |
19 | 19 | This file format isn't supported! Please check the |
20 | | - <a href="https://docs.geode-solutions.com/formats/" target="_blank"> |
| 20 | + <a |
| 21 | + href="https://docs.geode-solutions.com/guides/formats/" |
| 22 | + target="_blank" |
| 23 | + > |
21 | 24 | supported file formats documentation</a |
22 | 25 | > |
23 | 26 | for more information |
|
30 | 33 | import geode_objects from "@/assets/geode_objects" |
31 | 34 |
|
32 | 35 | const stepper_tree = inject("stepper_tree") |
33 | | - const { files, route_prefix } = stepper_tree |
| 36 | + const { files } = stepper_tree |
34 | 37 |
|
35 | 38 | const props = defineProps({ |
36 | 39 | variable_to_update: { type: String, required: true }, |
37 | 40 | variable_to_increment: { type: String, required: true }, |
| 41 | + schema: { type: Object, required: true }, |
38 | 42 | }) |
39 | 43 |
|
40 | | - const { variable_to_update, variable_to_increment } = props |
| 44 | + const { variable_to_update, variable_to_increment, schema } = props |
41 | 45 |
|
42 | 46 | const allowed_objects = ref([]) |
43 | 47 |
|
44 | 48 | async function get_allowed_objects() { |
45 | | - const params = new FormData() |
46 | | - params.append("filename", files[0].name) |
47 | | -
|
| 49 | + const params = { filename: files[0].name } |
48 | 50 | await api_fetch( |
49 | | - `${route_prefix}/allowed_objects`, |
50 | | - { method: "POST", body: params }, |
| 51 | + { schema, params }, |
51 | 52 | { |
52 | 53 | response_function: (response) => { |
53 | 54 | allowed_objects.value = response._data.allowed_objects |
|
0 commit comments