diff --git a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee index 3792daf20d..17150e2e64 100644 --- a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee +++ b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee @@ -71,6 +71,7 @@ define [ @$scope.$apply () => @_deleteEntityFromScope entity @recalculateDocList() + @$scope.$emit "entity:deleted", entity @ide.socket.on "reciveEntityMove", (entity_id, folder_id) => entity = @findEntityById(entity_id) @@ -368,8 +369,6 @@ define [ entity.deleted = true @$scope.deletedDocs.push entity - @$scope.$emit "entity:deleted", entity - _moveEntityInScope: (entity, parent_folder) -> return if entity in parent_folder.children @_deleteEntityFromScope(entity, moveToDeleted: false)