chore: saving off some progress for the renaming, need a new systemiomachine actor
This commit is contained in:
@ -272,16 +272,16 @@ export const FileExplorerRowElement = ({
|
||||
<RenameForm
|
||||
row={row}
|
||||
onSubmit={(event) => {
|
||||
console.log(event.target.value)
|
||||
row.rowRenameEnd(event)
|
||||
}}
|
||||
></RenameForm>
|
||||
></RenameForm>
|
||||
)}
|
||||
<div className="ml-auto">{row.status}</div>
|
||||
<div style={{ width: '0.25rem' }}></div>
|
||||
<FileExplorerRowContextMenu
|
||||
itemRef={rowElementRef}
|
||||
onRename={() => {
|
||||
row.rowRename()
|
||||
row.rowRenameStart()
|
||||
}}
|
||||
onDelete={() => {}}
|
||||
onClone={() => {}}
|
||||
|
||||
@ -159,9 +159,17 @@ export const ProjectExplorer = ({
|
||||
},
|
||||
isFake: false,
|
||||
activeIndex: activeIndex,
|
||||
rowRename: () => {
|
||||
rowRenameStart: () => {
|
||||
setIsRenaming(true)
|
||||
},
|
||||
rowRenameEnd: (event) => {
|
||||
setIsRenaming(false)
|
||||
const requestedRename = String(event.target.value)
|
||||
const name = row.name
|
||||
|
||||
// if (requestedProjectName !== projectName) {
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
return row
|
||||
|
||||
@ -24,6 +24,8 @@ export async function resetCameraPosition() {
|
||||
// We need a padding of 0.1 for zoom_to_fit for all E2E tests since they were originally
|
||||
// written with zoom_to_fit with padding 0.1
|
||||
const padding = 0.1
|
||||
await engineStreamZoomToFit({ engineCommandManager, padding })
|
||||
return
|
||||
if (isPlaywright()) {
|
||||
await engineStreamZoomToFit({ engineCommandManager, padding })
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user