mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added window maximize/restore functionality for properties dialog. Fixes #4064
This commit is contained in:
committed by
Akshay Joshi
parent
1ead82f9b8
commit
37dece2cd8
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user