Fixed an issue where Reassign/Drop Owned dialog not opening for Role. #7663

This commit is contained in:
Anil Sahoo 2024-07-16 17:42:16 +05:30 committed by GitHub
parent c4a52687b6
commit 30051f3257
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -209,7 +209,7 @@ export function showRoleReassign() {
}); });
pgAdmin.Browser.Events.trigger('pgadmin:utility:show', item, pgAdmin.Browser.Events.trigger('pgadmin:utility:show', item,
gettext(gettext(`Reassign/Drop Owned - ${data.label}`), treeNodeInfo.table.label),{ gettext(`Reassign/Drop Owned - ${data.label}`),{
schema, extraData, urlBase, sqlHelpUrl, helpUrl, saveBtnName: gettext('Reassign/Drop'), schema, extraData, urlBase, sqlHelpUrl, helpUrl, saveBtnName: gettext('Reassign/Drop'),
}, pgAdmin.Browser.stdW.md }, pgAdmin.Browser.stdW.md
); );

View File

@ -43,8 +43,10 @@ export default function UtilityView() {
gettext('Error'), gettext('Error'),
gettext(data.errormsg) gettext(data.errormsg)
); );
} else { } else if(data.data) {
pgAdmin.Browser.BgProcessManager.startProcess(data.data.job_id, data.data.desc); pgAdmin.Browser.BgProcessManager.startProcess(data.data.job_id, data.data.desc);
} else if(data.info) {
pgAdmin.Browser.notifier.success(data.info);
} }
pgAdmin.Browser.docker.close(panelId); pgAdmin.Browser.docker.close(panelId);
})} })}
@ -77,7 +79,7 @@ function UtilityViewContent({panelId, schema, treeNodeInfo, actionType, formType
/* button icons */ /* button icons */
const saveBtnIcon = extraData.save_btn_icon; const saveBtnIcon = extraData.save_btn_icon;
/* Node type & Noen obj*/ /* Node type & Node obj*/
let nodeObj = extraData.nodeType? pgAdmin.Browser.Nodes[extraData.nodeType]: undefined; let nodeObj = extraData.nodeType? pgAdmin.Browser.Nodes[extraData.nodeType]: undefined;
let itemNodeData = extraData?.itemNodeData ? itemNodeData: undefined; let itemNodeData = extraData?.itemNodeData ? itemNodeData: undefined;