mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Fixed an issue where Reassign/Drop Owned dialog not opening for Role. #7663
This commit is contained in:
parent
c4a52687b6
commit
30051f3257
@ -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
|
||||||
);
|
);
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user