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
pull/1/head
yann300 5 years ago committed by GitHub
parent 0bf3668242
commit 8ceced34e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/files/file-explorer.js

@ -470,7 +470,8 @@ fileExplorer.prototype.toGist = function (id) {
return data.files || [] 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) { if (error) {
console.log(error) console.log(error)
modalDialogCustom.alert('Failed to create gist: ' + error) modalDialogCustom.alert('Failed to create gist: ' + error)

Loading…
Cancel
Save