Fixed an issue in file dialog where rename was not working. #9651
parent
caafc6bb1b
commit
b78fc884e3
|
|
@ -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 #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 #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();
|
||||
|
||||
useEffect(()=>{
|
||||
if(operation.type) {
|
||||
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]);
|
||||
|
||||
|
|
@ -171,6 +173,10 @@ export default function ListView({items, operation, ...props}) {
|
|||
noRowsText={gettext('No files/folders found')}
|
||||
onRowsChange={onRowsChange}
|
||||
onCellKeyDown={onCellKeyDown}
|
||||
onItemEnter={(row, e)=>{
|
||||
e.preventGridDefault();
|
||||
onItemEnter(row);
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ export function CustomRow({inTest=false, ...props}) {
|
|||
}
|
||||
|
||||
const onCellClick = (args) => {
|
||||
gridUtils.onItemClick?.(args.row.rowIdx);
|
||||
gridUtils.onItemClick?.(args.rowIdx);
|
||||
props.onRowClick?.(args.row);
|
||||
};
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ export function CustomRow({inTest=false, ...props}) {
|
|||
// check if grid default is prevented.
|
||||
props.onCellDoubleClick?.(args, e);
|
||||
if(e.isGridDefaultPrevented()) return;
|
||||
gridUtils.onItemEnter?.(args.row);
|
||||
gridUtils.onItemEnter?.(args.row, e);
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
# relevant packages.
|
||||
###########################################################
|
||||
extras==1.0.0
|
||||
fixtures==4.3.0
|
||||
fixtures==4.3.1
|
||||
linecache2==1.0.0
|
||||
pbr==7.0.3
|
||||
pycodestyle>=2.5.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue