ui.js: Update browser address bar url when container closes

`stopPendingRequestsFor()` cancel the pending request but push the canceled url to history (by calling `loader::OnFailure` internally).
Now the `icingaUrl` is set again, remove it and push again the current state to history.
This commit is contained in:
Sukhwinder Dhillon 2023-07-06 10:02:21 +02:00 committed by Johannes Meyer
parent f3f35f86fd
commit d794439537

View File

@ -342,6 +342,7 @@
},
closeContainer: function($c) {
this.icinga.loader.stopPendingRequestsFor($c);
$c.removeData('icingaUrl');
$c.removeData('icingaTitle');
$c.removeData('icingaRefresh');
@ -349,8 +350,8 @@
$c.removeData('icingaModule');
delete $c[0].dataset.icingaContainerId;
$c.removeAttr('class').attr('class', 'container');
this.icinga.loader.stopPendingRequestsFor($c);
$c.trigger('close-column');
this.icinga.history.pushCurrentState();
$c.html('');
},