Skip to content

Commit 954b343

Browse files
Merge pull request #182 from Geode-solutions/fix/remove_launcher_on_mounted
Fix/remove launcher on mounted
2 parents 10d7343 + 43fedda commit 954b343

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

components/Launcher.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,4 @@
3232
}
3333
},
3434
)
35-
36-
onMounted(() => {
37-
if (infra_store.is_captcha_validated) {
38-
infra_store.create_backend()
39-
}
40-
})
4135
</script>

stores/viewer.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export const use_viewer_store = defineStore("viewer", {
6060
if (process.env.NODE_ENV == "test") return
6161
if (this.status === Status.CONNECTED) return
6262
navigator.locks.request("viewer.ws_connect", async (lock) => {
63-
console.log("VIEWER STATUS", this.status)
6463
if (this.status === Status.CONNECTED) return
6564
console.log("VIEWER LOCK GRANTED !", lock)
6665
this.status = Status.CONNECTING
@@ -71,18 +70,12 @@ export const use_viewer_store = defineStore("viewer", {
7170
config.sessionURL = this.base_url
7271

7372
const { client } = this
74-
console.log("client", client)
75-
console.log("status", this.status)
7673
if (this.status === Status.CONNECTED && client.isConnected()) {
77-
console.log("disconnect")
78-
7974
client.disconnect(-1)
8075
this.status = Status.NOT_CONNECTED
8176
}
8277
let clientToConnect = client
8378
if (_.isEmpty(clientToConnect)) {
84-
console.log("isEmpty")
85-
8679
clientToConnect = vtkWSLinkClient.newInstance()
8780
}
8881

@@ -112,13 +105,11 @@ export const use_viewer_store = defineStore("viewer", {
112105
const { connectImageStream } = await import(
113106
"@kitware/vtk.js/Rendering/Misc/RemoteView"
114107
)
115-
console.log("before connect")
116108
const viewer_store = this
117109
return new Promise((resolve, reject) => {
118110
clientToConnect
119111
.connect(config)
120112
.then((validClient) => {
121-
console.log("validClient", validClient)
122113
connectImageStream(validClient.getConnection().getSession())
123114
viewer_store.client = validClient
124115
clientToConnect.endBusy()

0 commit comments

Comments
 (0)