Skip to content

Commit

Permalink
Fixed: Opening request details show older libraries and samples (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
hash-bash authored Nov 21, 2024
1 parent 19f11f9 commit 0355d00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/static/main-hub/app/view/requests/RequestWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Ext.define("MainHub.view.requests.RequestWindow", {
modal: true,
resizable: true,

listeners: {
beforeclose: "onRequestWindowBeforeClose"
},

items: [
{
xtype: "container",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,17 @@ Ext.define("MainHub.view.requests.RequestWindowController", {
});
},

onRequestWindowBeforeClose: function (wnd) {
var librariesInRequestStore = Ext.getStore("librariesInRequestStore");
if (librariesInRequestStore) {
librariesInRequestStore.removeAll();
}
var librariesInRequestGrid = wnd.down("#libraries-in-request-grid");
if (librariesInRequestGrid) {
librariesInRequestGrid.getView().refresh();
}
},

initializeTooltips: function () {
$.each($(".request-field-tooltip"), function (idx, item) {
Ext.create("Ext.tip.ToolTip", {
Expand Down

0 comments on commit 0355d00

Please sign in to comment.