Added window maximize/restore functionality for properties dialog. Fixes #4064

This commit is contained in:
Rahul Shirsat 2021-05-24 22:08:23 +05:30 committed by Akshay Joshi
parent 1ead82f9b8
commit 37dece2cd8
7 changed files with 32 additions and 5 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_5_4
release_notes_5_3
release_notes_5_2
release_notes_5_1

View File

@ -0,0 +1,20 @@
************
Version 5.4
************
Release date: 2021-06-17
This release contains a number of bug fixes and new features since the release of pgAdmin4 5.3.
New features
************
| `Issue #4064 <https://redmine.postgresql.org/issues/4064>`_ - Added window maximize/restore functionality for properties dialog.
Housekeeping
************
Bug fixes
*********

View File

@ -122,7 +122,7 @@
"tempusdominus-bootstrap-4": "^5.1.2",
"tempusdominus-core": "^5.0.3",
"underscore": "^1.13.1",
"webcabin-docker": "git+https://github.com/EnterpriseDB/wcDocker/#c4a3398b89588408dc705895675bce7bd7660d36",
"webcabin-docker": "git+https://github.com/EnterpriseDB/wcDocker/#89e006611f4d0fc24b0a098fa2041821d093be4f",
"wkx": "^0.5.0"
},
"scripts": {

View File

@ -514,6 +514,7 @@ define('pgadmin.browser.node', [
isCloseable: true,
isPrivate: true,
isLayoutMember: false,
canMaximise: true,
elContainer: true,
content: '<div class="obj_properties container-fluid"><div role="status" class="pg-panel-message">' + gettext('Please wait while we fetch information about the node from the server...') + '</div></div>',
onCreate: function(myPanel, $container) {

View File

@ -18,7 +18,7 @@ define(
var defaults = [
'name', 'title', 'width', 'height', 'showTitle', 'isCloseable',
'isPrivate', 'isLayoutMember', 'content', 'icon', 'events', 'onCreate', 'elContainer',
'canHide', 'limit', 'extraClasses',
'canHide', 'limit', 'extraClasses', 'canMaximise',
];
_.extend(this, _.pick(options, defaults));
};
@ -37,6 +37,7 @@ define(
panel: null,
onCreate: null,
elContainer: false,
canMaximise: false,
limit: null,
extraClasses: null,
load: function(docker, title) {
@ -69,6 +70,7 @@ define(
$container.addClass(that.extraClasses);
}
myPanel.maximisable(!!that.canMaximise);
myPanel.closeable(!!that.isCloseable);
myPanel.layout().addItem($container);
that.panel = myPanel;

View File

@ -64,6 +64,9 @@
display: flex;
}
.wcFloating .wcFrameButtonBar {
flex-direction: row-reverse;
}
.wcLayout {
display: block;

View File

@ -9002,9 +9002,9 @@ watchpack@^2.0.0:
glob-to-regexp "^0.4.1"
graceful-fs "^4.1.2"
"webcabin-docker@git+https://github.com/EnterpriseDB/wcDocker/#c4a3398b89588408dc705895675bce7bd7660d36":
version "2.2.4-dev"
resolved "git+https://github.com/EnterpriseDB/wcDocker/#c4a3398b89588408dc705895675bce7bd7660d36"
"webcabin-docker@git+https://github.com/EnterpriseDB/wcDocker/#89e006611f4d0fc24b0a098fa2041821d093be4f":
version "2.2.5"
resolved "git+https://github.com/EnterpriseDB/wcDocker/#89e006611f4d0fc24b0a098fa2041821d093be4f"
dependencies:
"@fortawesome/fontawesome-free" "^5.14.0"
FileSaver "^0.10.0"