File tree 2 files changed +10
-16
lines changed
2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default function DatalinkNameColumn(props: DatalinkNameColumnProps) {
49
49
>
50
50
< img src = { DatalinkIcon } className = "m-name-column-icon size-4" />
51
51
< EditableSpan
52
- editable = { false }
52
+ editable = { rowState . isEditingName }
53
53
onSubmit = { doRename }
54
54
onCancel = { ( ) => {
55
55
setIsEditing ( false )
Original file line number Diff line number Diff line change @@ -300,21 +300,15 @@ export default function AssetContextMenu(props: AssetContextMenuProps) {
300
300
} }
301
301
/>
302
302
) }
303
- { canExecute &&
304
- ! isRunningProject &&
305
- ! isOtherUserUsingProject &&
306
- ( ! isCloud ||
307
- asset . type === backendModule . AssetType . project ||
308
- asset . type === backendModule . AssetType . directory ||
309
- asset . type === backendModule . AssetType . secret ) && (
310
- < ContextMenuEntry
311
- hidden = { hidden }
312
- action = "rename"
313
- doAction = { ( ) => {
314
- setRowState ( object . merger ( { isEditingName : true } ) )
315
- } }
316
- />
317
- ) }
303
+ { canExecute && ! isRunningProject && ! isOtherUserUsingProject && (
304
+ < ContextMenuEntry
305
+ hidden = { hidden }
306
+ action = "rename"
307
+ doAction = { ( ) => {
308
+ setRowState ( object . merger ( { isEditingName : true } ) )
309
+ } }
310
+ />
311
+ ) }
318
312
{ ( asset . type === backendModule . AssetType . secret ||
319
313
asset . type === backendModule . AssetType . datalink ) &&
320
314
canEditThisAsset && (
You can’t perform that action at this time.
0 commit comments