Skip to content

Commit 9de6070

Browse files
committed
Set YASGUI endpoint as per docs
1 parent ef669b0 commit 9de6070

File tree

1 file changed

+11
-6
lines changed
  • jena-fuseki2/jena-fuseki-ui/src/views/dataset

1 file changed

+11
-6
lines changed

jena-fuseki2/jena-fuseki-ui/src/views/dataset/Query.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,17 @@ export default {
277277
}
278278
279279
this.$options.yasgui = new Yasgui(yasguiElement, {
280+
requestConfig: {
281+
endpoint: this.$fusekiService.getFusekiUrl(this.currentDatasetUrl)
282+
},
283+
copyEndpointOnNewTab: false,
280284
yasr: {
281285
persistenceId: null,
282286
},
283287
// NOTE: the full screen functionality was removed from YASQE: https://github.com/Triply-Dev/YASGUI.YASQE-deprecated/issues/139#issuecomment-573656137
284288
yasqe: {
285289
showQueryButton: true,
286290
resizeable: true,
287-
requestConfig: {
288-
endpoint: this.$fusekiService.getFusekiUrl(this.currentDatasetUrl)
289-
},
290291
createShareableLink: curriedCreateShareableLink
291292
}
292293
})
@@ -324,17 +325,17 @@ export default {
324325
},
325326
currentDatasetUrl: function (val, oldVal) {
326327
if (this.$options.yasgui) {
327-
this.$options.yasgui.setEndpoint(this.$fusekiService.getFusekiUrl(val))
328+
this.$options.yasgui.config.requestConfig.endpoint = this.$fusekiService.getFusekiUrl(val)
328329
}
329330
},
330331
contentTypeSelect: function (val, oldVal) {
331332
if (this.$options.yasgui) {
332-
this.$options.yasgui.options.requestConfig.acceptHeaderSelect = this.contentTypeSelect
333+
this.$options.yasgui.config.requestConfig.acceptHeaderSelect = this.contentTypeSelect
333334
}
334335
},
335336
contentTypeGraph: function (val, oldVal) {
336337
if (this.$options.yasgui) {
337-
this.$options.yasgui.options.requestConfig.acceptHeaderGraph = this.contentTypeGraph
338+
this.$options.yasgui.config.requestConfig.acceptHeaderGraph = this.contentTypeGraph
338339
}
339340
}
340341
},
@@ -380,4 +381,8 @@ export default {
380381

381382
<style lang="scss">
382383
@import '@triply/yasgui/build/yasgui.min.css';
384+
385+
.yasgui .autocompleteWrapper {
386+
display: none !important;
387+
}
383388
</style>

0 commit comments

Comments
 (0)