Skip to content

Commit dbf0a99

Browse files
committed
test
1 parent e251104 commit dbf0a99

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

composables/project_manager.js

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,38 +58,13 @@ export function useProjectManager() {
5858
params: {},
5959
})
6060

61-
await appStore.importStores(result.snapshot)
62-
6361
const dataBaseStore = useDataBaseStore()
64-
for (const [id, item] of Object.entries(dataBaseStore.items)) {
65-
const registerSchema =
66-
item.object_type === "model"
67-
? viewer_schemas.opengeodeweb_viewer.model.register
68-
: viewer_schemas.opengeodeweb_viewer.mesh.register
69-
await viewer_call({ schema: registerSchema, params: { id } })
62+
const treeviewStore = useTreeviewStore()
63+
treeviewStore.isImporting = true
7064

71-
if (item.vtk_js?.binary_light_viewable) {
72-
await viewer_call({
73-
schema: viewer_schemas.opengeodeweb_viewer.viewer.update_data,
74-
params: {
75-
id,
76-
vtk_js: {
77-
binary_light_viewable: item.vtk_js.binary_light_viewable,
78-
},
79-
},
80-
})
81-
}
65+
await appStore.importStores(result.snapshot)
8266

83-
if (item.viewable_filename) {
84-
await viewer_call({
85-
schema: viewer_schemas.opengeodeweb_viewer.viewer.update_data,
86-
params: {
87-
id,
88-
vtk_js: { viewable_file_name: item.viewable_filename },
89-
},
90-
})
91-
}
92-
}
67+
treeviewStore.isImporting = false
9368
} finally {
9469
geode.stop_request()
9570
}

0 commit comments

Comments
 (0)