Skip to content

Commit 0c0d4e1

Browse files
authored
Merge pull request #243 from edmcouncil/242-search-results-unclickable
Search results unclickable
2 parents fbd9f43 + e0618d4 commit 0c0d4e1

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

auto/src/views/Ontology.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@
959959
<script>
960960
import { mapState } from 'vuex';
961961
import Multiselect from 'vue-multiselect';
962+
import customLink from '../components/chunks/link';
962963
import {
963964
getEntity, getFindSearch, getModules, getOntologyVersions, getHint,
964965
} from '../api/ontology';
@@ -971,6 +972,7 @@ export default {
971972
Stats: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
972973
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
973974
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
975+
customLink,
974976
Multiselect,
975977
},
976978
props: ['ontology'],

fibo/src/views/Ontology.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,7 @@
11331133
<script>
11341134
import { mapState } from "vuex";
11351135
import Multiselect from "vue-multiselect";
1136+
import customLink from '../components/chunks/link';
11361137
import { getEntity, getModules, getOntologyVersions, getFindSearch, getFindProperties } from "../api/ontology";
11371138
11381139
export default {
@@ -1143,6 +1144,7 @@ export default {
11431144
StatsComponent: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
11441145
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
11451146
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
1147+
customLink,
11461148
Multiselect,
11471149
},
11481150
props: ["ontology"],
@@ -1224,9 +1226,9 @@ export default {
12241226
this.updateServers();
12251227
12261228
this.query = queryParam;
1229+
this.fetchSearchProperties();
12271230
this.fetchData(this.query);
12281231
this.fetchModules();
1229-
this.fetchSearchProperties();
12301232
},
12311233
methods: {
12321234
toggleModuleTree() {
@@ -1528,6 +1530,11 @@ export default {
15281530
15291531
this.searchBox.debounce = setTimeout(async () => {
15301532
try {
1533+
// wait for properties to be loaded if they arent
1534+
while (this.searchBox.findPropertiesAll.length === 0) {
1535+
await new Promise((resolve) => setTimeout(resolve, 100));
1536+
}
1537+
15311538
// eslint-disable-next-line max-len
15321539
let domain = encodeURI(`${this.searchServer}?term=${query}&mode=advance&useHighlighting=false&findProperties=${this.searchBox.encodedProperties}`);
15331540
const result = await getFindSearch(domain);

idmp/src/views/Ontology.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@
11351135
<script>
11361136
import { mapState } from "vuex";
11371137
import Multiselect from "vue-multiselect";
1138+
import customLink from '../components/chunks/link';
11381139
import { getEntity, getModules, getOntologyVersions, getFindSearch, getFindProperties } from "../api/ontology";
11391140
11401141
export default {
@@ -1145,6 +1146,7 @@ export default {
11451146
StatsComponent: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
11461147
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
11471148
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
1149+
customLink,
11481150
Multiselect,
11491151
},
11501152
props: ["ontology"],
@@ -1226,9 +1228,9 @@ export default {
12261228
this.updateServers();
12271229
12281230
this.query = queryParam;
1231+
this.fetchSearchProperties();
12291232
this.fetchData(this.query);
12301233
this.fetchModules();
1231-
this.fetchSearchProperties();
12321234
},
12331235
methods: {
12341236
toggleModuleTree() {
@@ -1509,6 +1511,11 @@ export default {
15091511
15101512
this.searchBox.debounce = setTimeout(async () => {
15111513
try {
1514+
// wait for properties to be loaded if they arent
1515+
while (this.searchBox.findPropertiesAll.length === 0) {
1516+
await new Promise((resolve) => setTimeout(resolve, 100));
1517+
}
1518+
15121519
// eslint-disable-next-line max-len
15131520
let domain = encodeURI(`${this.searchServer}?term=${query}&mode=advance&useHighlighting=false&findProperties=${this.searchBox.encodedProperties}`);
15141521
const result = await getFindSearch(domain);

0 commit comments

Comments
 (0)