mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Improve performance by removing signal-based zoom-in, zoom-out, etc functionality from the runtime environment. #5723
This commit is contained in:
@@ -110,7 +110,7 @@ export class MenuItem {
|
||||
let menu_opts = [
|
||||
'name', 'label', 'priority', 'module', 'callback', 'data', 'enable',
|
||||
'category', 'target', 'url', 'node',
|
||||
'checked', 'below', 'menu_items', 'is_checkbox', 'action', 'applies', 'is_native_only', 'type'
|
||||
'checked', 'below', 'menu_items', 'is_checkbox', 'action', 'applies', 'is_native_only', 'type',
|
||||
];
|
||||
let defaults = {
|
||||
url: '#',
|
||||
|
||||
@@ -696,7 +696,7 @@ function openWindow(toolForm, title) {
|
||||
let pgBrowser = window.pgAdmin.Browser;
|
||||
// Send the signal to runtime, so that proper zoom level will be set.
|
||||
setTimeout(function() {
|
||||
pgBrowser.send_signal_to_runtime('Runtime new window opened');
|
||||
pgBrowser.Events.trigger('pgadmin:nw-set-new-window-open-size');
|
||||
}, 500);
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user