Don't switch back to editor view when selecting a file in the history view

This commit is contained in:
James Allen 2016-10-19 10:43:53 +01:00
parent 05cd6e69a7
commit 193766b437

View file

@ -12,7 +12,7 @@ define [
}
@$scope.$on "entity:selected", (event, entity) =>
if (@$scope.ui.view != "track-changes" and entity.type == "doc")
if (@$scope.ui.view != "history" and entity.type == "doc")
@openDoc(entity)
@$scope.$on "entity:deleted", (event, entity) =>