mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-22 23:23:57 -06:00
Fixed an issue where the dock layout was not saved upon closing a tab. #7919
This commit is contained in:
parent
f0ecc95ca9
commit
535c7eeef8
@ -119,15 +119,9 @@ def store(setting=None, value=None):
|
||||
success = 0
|
||||
errormsg = str(e)
|
||||
|
||||
try:
|
||||
info = traceback.format_exc()
|
||||
except Exception as e:
|
||||
info = str(e)
|
||||
|
||||
return make_json_response(success=success,
|
||||
errormsg=errormsg,
|
||||
info=info,
|
||||
result=request.form)
|
||||
info=gettext("Setting stored"))
|
||||
|
||||
|
||||
@blueprint.route("/layout", methods=['DELETE'], endpoint='reset_layout')
|
||||
|
@ -89,7 +89,7 @@ export class LayoutDocker {
|
||||
if(panelData.internal?.manualClose && !force) {
|
||||
this.eventBus.fireEvent(LAYOUT_EVENTS.CLOSING, panelId);
|
||||
} else {
|
||||
this.layoutObj.dockMove(panelData, 'remove');
|
||||
this.layoutObj.dockMove(panelData, null, 'remove');
|
||||
// rc-dock is not firing the "active" event after a tab is removed
|
||||
// and another is focussed. here we try get the new active id and
|
||||
// manually fire the active event
|
||||
|
Loading…
Reference in New Issue
Block a user