Unverified Commit 8ceced34 authored by yann300's avatar yann300 Committed by GitHub

Export to Gist

if "id" is not defined, it is not a gist update but a creation. we have to take the file from the browser explorer
parent 0bf36682
......@@ -470,7 +470,8 @@ fileExplorer.prototype.toGist = function (id) {
return data.files || []
}
this.packageFiles(this.files, 'browser/gists/' + id, (error, packaged) => {
const folder = id ? 'browser/gists/' + id : 'browser/'
this.packageFiles(this.files, folder, (error, packaged) => {
if (error) {
console.log(error)
modalDialogCustom.alert('Failed to create gist: ' + error)
......
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