mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
improve behaviour of trying to rename a file to empty
This commit is contained in:
+2
-1
@@ -13,10 +13,11 @@ define [
|
||||
$scope.entity.renaming = true
|
||||
|
||||
$scope.finishRenaming = () ->
|
||||
delete $scope.entity.renaming
|
||||
name = $scope.inputs.name
|
||||
if !name? or name.length == 0
|
||||
$scope.inputs.name = $scope.entity.name
|
||||
return
|
||||
delete $scope.entity.renaming
|
||||
ide.fileTreeManager.renameEntity($scope.entity, name)
|
||||
|
||||
$scope.$on "rename:selected", () ->
|
||||
|
||||
Reference in New Issue
Block a user