Skip to content

Commit 65edb00

Browse files
committed
Implement selecting entities from variable columns
1 parent 3922e28 commit 65edb00

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

etc/js/components/widgets/table/entity-table.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
<template v-else>
3232
<div class="entity-table-name">
3333
<entity-parent :path="col.get(result)"></entity-parent>
34-
<entity-name :path="col.get(result)"></entity-name>
34+
<span class="entity-link" @click.stop="onSelectEntity(col.get(result))">
35+
<entity-name :path="col.get(result)" :link="true"></entity-name>
36+
</span>
3537
</div>
3638
</template>
3739
</template>
@@ -263,6 +265,10 @@ function onSelect(result) {
263265
}
264266
}
265267
268+
function onSelectEntity(e) {
269+
return emit("select", e);
270+
}
271+
266272
</script>
267273

268274
<style scoped>
@@ -349,4 +355,8 @@ tr.entity-table-row-selectable:hover td {
349355
background-color: var(--bg-cell-hover);
350356
}
351357
358+
span.entity-link:hover {
359+
color: var(--green);
360+
}
361+
352362
</style>

0 commit comments

Comments
 (0)