Skip to content
Snippets Groups Projects
Commit 1468bd9a authored by dcz's avatar dcz
Browse files

Reload entries list bugfix.

parent d89edaa1
Branches
Tags
No related merge requests found
......@@ -6,8 +6,10 @@ export default {
},
watch: {
unificationEntriesListRefreshKey() {
// TODO: reload data and click in selected row
// this.datatableObject.ajax.reload();
setup_entries_list({
table: this.$refs.table1,
table: this.$refs.table,
lexicalUnitSelected: (entryId, lexicalUnitId) => { this.$emit('lexicalUnitSelected', entryId, lexicalUnitId); },
selectEntryId: this.initialEntryId
});
......@@ -16,12 +18,13 @@ export default {
data () {
return {
gettext: window.gettext,
canViewAssignment: has_permission("users.view_assignment")
canViewAssignment: has_permission("users.view_assignment"),
datatableObject: Object,
}
},
emits: ['lexicalUnitSelected'],
mounted () {
setup_entries_list({
this.datatableObject = setup_entries_list({
table: this.$refs.table,
lexicalUnitSelected: (entryId, lexicalUnitId) => { this.$emit('lexicalUnitSelected', entryId, lexicalUnitId); },
selectEntryId: this.initialEntryId
......
......@@ -33,6 +33,7 @@ function setup_entries_list(options) {
drilldown.closest("td").addClass("p-0 pl-4");
}
});
return datatable;
}
function setup_lexical_units_table(drilldown, lexical_units, can_see_assignees, options) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment