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

Reload entries list bugfix.

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