public inbox for [email protected]
help / color / mirror / Atom feedFrom: Rahul Shirsat <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [patch][pgAdmin] RM6859 Properties panel is not updated when any object is added from the browser tree
Date: Tue, 26 Oct 2021 14:13:56 +0530
Message-ID: <CAKtn9dP2zUturDzUPMNHyvKeRYVEJVKCdacDxiM+ghaeM7mU7g@mail.gmail.com> (raw)
Hi Hackers,
Please find the attached patch which resolves the issue properties panel
updation.
This patch will have unique behaviour throughout, i.e. new node will be
selected on creation, instead of selecting the collection node.
--
*Rahul Shirsat*
Senior Software Engineer | EnterpriseDB Corporation.
Attachments:
[application/octet-stream] RM6859.patch (844B, 3-RM6859.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/static/js/browser.js b/web/pgadmin/browser/static/js/browser.js
index 40fc14a8a..45f18cb93 100644
--- a/web/pgadmin/browser/static/js/browser.js
+++ b/web/pgadmin/browser/static/js/browser.js
@@ -1086,11 +1086,13 @@ define('pgadmin.browser', [
};
if (binarySearch()) {
- __ctx.t.before(i, _data).then(() => {
+ __ctx.t.before(i, _data).then((_item) => {
if (
__ctx.o && __ctx.o.success && typeof(__ctx.o.success) == 'function'
) {
__ctx.o.success.apply(__ctx.t, [i, _data]);
+ } else {
+ __ctx.t.select(_item);
}
}, () => {
console.warn('Failed to add before...', arguments);
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [patch][pgAdmin] RM6859 Properties panel is not updated when any object is added from the browser tree
In-Reply-To: <CAKtn9dP2zUturDzUPMNHyvKeRYVEJVKCdacDxiM+ghaeM7mU7g@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox