From 4b09375daf9eb87013cfc2192205c7b6d39d558f Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 10 Jul 2019 14:53:16 +0200 Subject: [PATCH] [remixd] when file change and click is outside of the modal, the file should not be overwritten. --- src/app/files/file-explorer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 2d0c33ada1..17a45b27e2 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -74,15 +74,15 @@ function fileExplorer (localRegistry, files, menuItems) { if (this.files.isReadOnly(path)) return self._deps.editor.setText(file.content) modalDialog(path + ' changed', remixdDialog(), - { - label: 'Keep the content displayed in Remix', - fn: () => {} - }, { label: 'Replace by the new content', fn: () => { self._deps.editor.setText(file.content) } + }, + { + label: 'Keep the content displayed in Remix', + fn: () => {} } ) }