mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the view/edit data panel should not be opened for unsupported nodes using the keyboard shortcut. Fixes #6206
This commit is contained in:
@@ -43,6 +43,12 @@ export function showDataGrid(
|
||||
return;
|
||||
}
|
||||
|
||||
let applicable_nodes = ['table', 'view', 'mview', 'foreign_table'];
|
||||
if (applicable_nodes.indexOf(node.getData()._type) === -1) {
|
||||
alertify.error(gettext('This feature is not applicable to the selected object.'));
|
||||
return;
|
||||
}
|
||||
|
||||
const gridUrl = generateUrl(transId, connectionData, node.getData(), parentData);
|
||||
const queryToolTitle = generateDatagridTitle(pgBrowser, aciTreeIdentifier);
|
||||
if(filter) {
|
||||
|
||||
Reference in New Issue
Block a user