Commit 72bdd254 authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Destroy monaco if you can. Edit if files opened.

parent 487b36d9
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
}, },
showButton() { showButton() {
return this.isCommitable && !this.activeFile.render_error && !this.binary; return this.isCommitable && !this.activeFile.render_error && !this.binary && this.openedFiles.length;
} }
}, },
methods: { methods: {
......
...@@ -8,7 +8,9 @@ const RepoEditor = { ...@@ -8,7 +8,9 @@ const RepoEditor = {
data: () => Store, data: () => Store,
destroyed() { destroyed() {
if(this.monacoInstance){
this.monacoInstance.destroy(); this.monacoInstance.destroy();
}
}, },
mounted() { mounted() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment