Ensure previews are not opened in edit mode

Apparently component state can survive route changes there. o_O
This commit is contained in:
Basti 2018-04-02 00:18:35 +02:00
parent e3f1010d59
commit 4d8e25eaf7
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ export default Route.extend({
if (isPresent(model)) {
controller.set('currentDirPath', model.currentDirPath);
}
controller.set('documentShowEditor', false);
}
});