diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-24 14:57:32 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-27 14:54:46 +0300 |
commit | c5e2a7e8e27c4af69a581cfb272f82015a64d439 (patch) | |
tree | 08a3f5a01a04672e480a5b034a35dd78ab3e81cb /src | |
parent | 516036ee2a31829490a2faa478c09a23eb350fff (diff) |
Block creating new files if already triggered (fixes #584)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/RichWorkspace.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index 521197a59..7ca6f2cb2 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -122,10 +122,12 @@ export default { this.file = data.file this.editing = true this.loaded = true + this.creating = false }).catch(() => { this.file = null this.loaded = true this.ready = true + this.creating = false }) }, createNew() { @@ -136,7 +138,6 @@ export default { window.FileList.createFile('Readme.md', { scrollTo: false, animate: false }).then((status, data) => { this.getFileInfo() this.autofocus = true - this.creating = false }) }, }, |