Skip to content

Commit

Permalink
trigger reload list on save
Browse files Browse the repository at this point in the history
  • Loading branch information
cedrikv committed Mar 2, 2023
1 parent 4f63129 commit e90d424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atramhasis/static/admin/src/app/ui/AppUi.js
Expand Up @@ -600,6 +600,7 @@ define([
var tab = this._getTab(schemeId + '_' + concept.id);
this._closeTab(tab);
this._openConcept(res.id, schemeId);
this._searchPane.reload();
topic.publish('dGrowl', 'The concept was successfully saved.', {
'title': 'Save successful',
'sticky': false,
Expand All @@ -623,6 +624,7 @@ define([
// save successful
view._close();
this._openConcept(res.id, schemeId);
this._searchPane.reload();
topic.publish('dGrowl', 'The concept was successfully saved.', {
'title': 'Save successful',
'sticky': false,
Expand Down
5 changes: 5 additions & 0 deletions atramhasis/static/admin/src/app/ui/widgets/SearchPane.js
Expand Up @@ -72,6 +72,11 @@ define([
this._grid.set('collection', store);
},

reload: function () {
console.debug('SearchPane::reload');
this._grid.set('collection', this.appUi.conceptController.getConceptStore(this._scheme));
},

_createGrid: function (node) {
console.debug('SearchPane::_createGrid');

Expand Down

0 comments on commit e90d424

Please sign in to comment.