Improve performance by removing signal-based zoom-in, zoom-out, etc functionality from the runtime environment. #5723

This commit is contained in:
Nikhil Mohite
2023-01-17 17:18:35 +05:30
committed by GitHub
parent e0a3420cd9
commit a48828e7a3
11 changed files with 157 additions and 192 deletions

View File

@@ -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: '#',

View File

@@ -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;