mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 20:30:17 -06:00
Fixed an issue in file dialog where rename was not working. #9651
This commit is contained in:
1 parent
caafc6bb1b
commit
b78fc884e3
4 files changed
+13
-5
No files matched your search
@@ -41,5 +41,7 @@ Bug fixes
|
|||||||
| `Issue #9486 <https://github.com/pgadmin-org/pgadmin4/issues/9486>`_ - Fixed an issue where column comments were not displayed in the SQL tab for materialised views.
|
| `Issue #9486 <https://github.com/pgadmin-org/pgadmin4/issues/9486>`_ - Fixed an issue where column comments were not displayed in the SQL tab for materialised views.
|
||||||
| `Issue #9572 <https://github.com/pgadmin-org/pgadmin4/issues/9572>`_ - Fix an issue where deployment of helm chart crashing with operation not permitted.
|
| `Issue #9572 <https://github.com/pgadmin-org/pgadmin4/issues/9572>`_ - Fix an issue where deployment of helm chart crashing with operation not permitted.
|
||||||
| `Issue #9583 <https://github.com/pgadmin-org/pgadmin4/issues/9583>`_ - Fix translation compilation.
|
| `Issue #9583 <https://github.com/pgadmin-org/pgadmin4/issues/9583>`_ - Fix translation compilation.
|
||||||
|
| `Issue #9649 <https://github.com/pgadmin-org/pgadmin4/issues/9649>`_ - Fix broken checkbox selection in backup dialog objects tree.
|
||||||
|
| `Issue #9651 <https://github.com/pgadmin-org/pgadmin4/issues/9651>`_ - Fixed an issue in file dialog where rename was not working.
|
||||||
|
|
||||||
|
|
||||||
@@ -131,13 +131,15 @@ const columns = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
export default function ListView({items, operation, ...props}) {
|
export default function ListView({items, operation, onItemEnter, ...props}) {
|
||||||
const gridRef = useRef();
|
const gridRef = useRef();
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
if(operation.type) {
|
if(operation.type) {
|
||||||
operation.type == 'add' && gridRef.current.scrollToCell({rowIdx: operation.idx});
|
operation.type == 'add' && gridRef.current.scrollToCell({rowIdx: operation.idx});
|
||||||
gridRef.current.selectCell({idx: 0, rowIdx: operation.idx}, true);
|
gridRef.current.selectCell({idx: 0, rowIdx: operation.idx}, {
|
||||||
|
enableEditor: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}, [operation]);
|
}, [operation]);
|
||||||
|
|
||||||
@@ -171,6 +173,10 @@ export default function ListView({items, operation, ...props}) {
|
|||||||
noRowsText={gettext('No files/folders found')}
|
noRowsText={gettext('No files/folders found')}
|
||||||
onRowsChange={onRowsChange}
|
onRowsChange={onRowsChange}
|
||||||
onCellKeyDown={onCellKeyDown}
|
onCellKeyDown={onCellKeyDown}
|
||||||
|
onItemEnter={(row, e)=>{
|
||||||
|
e.preventGridDefault();
|
||||||
|
onItemEnter(row);
|
||||||
|
}}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export function CustomRow({inTest=false, ...props}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onCellClick = (args) => {
|
const onCellClick = (args) => {
|
||||||
gridUtils.onItemClick?.(args.row.rowIdx);
|
gridUtils.onItemClick?.(args.rowIdx);
|
||||||
props.onRowClick?.(args.row);
|
props.onRowClick?.(args.row);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ export function CustomRow({inTest=false, ...props}) {
|
|||||||
// check if grid default is prevented.
|
// check if grid default is prevented.
|
||||||
props.onCellDoubleClick?.(args, e);
|
props.onCellDoubleClick?.(args, e);
|
||||||
if(e.isGridDefaultPrevented()) return;
|
if(e.isGridDefaultPrevented()) return;
|
||||||
gridUtils.onItemEnter?.(args.row);
|
gridUtils.onItemEnter?.(args.row, e);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
# relevant packages.
|
# relevant packages.
|
||||||
###########################################################
|
###########################################################
|
||||||
extras==1.0.0
|
extras==1.0.0
|
||||||
fixtures==4.3.0
|
fixtures==4.3.1
|
||||||
linecache2==1.0.0
|
linecache2==1.0.0
|
||||||
pbr==7.0.3
|
pbr==7.0.3
|
||||||
pycodestyle>=2.5.0
|
pycodestyle>=2.5.0
|
||||||
|
|||||||
Reference in new issue
Block a user