From 4d8e25eaf7e53e122bede4c3ebe67de498580fa1 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 2 Apr 2018 00:18:35 +0200 Subject: [PATCH] Ensure previews are not opened in edit mode Apparently component state can survive route changes there. o_O --- app/routes/inspect.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/routes/inspect.js b/app/routes/inspect.js index 75eb3e7..f8960d3 100644 --- a/app/routes/inspect.js +++ b/app/routes/inspect.js @@ -48,6 +48,8 @@ export default Route.extend({ if (isPresent(model)) { controller.set('currentDirPath', model.currentDirPath); } + + controller.set('documentShowEditor', false); } });