|
|
@ -47,7 +47,7 @@ class FileProvider { |
|
|
|
return this.externalFolders.includes(path) |
|
|
|
return this.externalFolders.includes(path) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
discardChanges (path, toastCb, modalCb) { |
|
|
|
async discardChanges (path, toastCb, modalCb) { |
|
|
|
this.remove(path) |
|
|
|
this.remove(path) |
|
|
|
const compilerImport = new CompilerImports() |
|
|
|
const compilerImport = new CompilerImports() |
|
|
|
this.providerExternalsStorage.keys().map(value => { |
|
|
|
this.providerExternalsStorage.keys().map(value => { |
|
|
@ -56,7 +56,7 @@ class FileProvider { |
|
|
|
this.getNormalizedName(value), |
|
|
|
this.getNormalizedName(value), |
|
|
|
true, |
|
|
|
true, |
|
|
|
(loadingMsg) => { toastCb(loadingMsg) }, |
|
|
|
(loadingMsg) => { toastCb(loadingMsg) }, |
|
|
|
(error, content, cleanUrl, type, url) => { |
|
|
|
async (error, content, cleanUrl, type, url) => { |
|
|
|
if (error) { |
|
|
|
if (error) { |
|
|
|
modalCb(error) |
|
|
|
modalCb(error) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|