adapt-authoring-ui 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,14 +177,17 @@ define(function(require){
|
|
|
177
177
|
const formatted = this.formatErrorString(e.message)
|
|
178
178
|
if (formatted) text = formatted
|
|
179
179
|
} catch {}
|
|
180
|
+
if(!$('.frameworkImport .statusReport').length) {
|
|
181
|
+
this.$('#import_upload').addClass('display-none');
|
|
182
|
+
this.$el.append(`<div class="frameworkImport"><div class="summaryText error"></div><div class="inner"><div class="statusReport"></div></div></div>`);
|
|
183
|
+
}
|
|
180
184
|
$('.frameworkImport .summaryText').addClass('error').text('Course import failed')
|
|
181
185
|
$('.frameworkImport .statusReport > .error').remove()
|
|
182
186
|
$('.frameworkImport .statusReport').prepend(`<div class="error">
|
|
183
187
|
<h3>Errors</h3>
|
|
184
188
|
<div class="messages">${text}</div>
|
|
185
189
|
</div>`)
|
|
186
|
-
|
|
187
|
-
Origin.trigger('sidebar:resetButtons');
|
|
190
|
+
Origin.trigger('sidebar:resetButtons');
|
|
188
191
|
}
|
|
189
192
|
}, {
|
|
190
193
|
template: 'frameworkImport'
|
package/lib/JavaScriptTask.js
CHANGED
|
@@ -383,7 +383,7 @@ export default class JavaScriptTask {
|
|
|
383
383
|
adaptInjectPlugins({}),
|
|
384
384
|
commonjs({
|
|
385
385
|
include: ['node_modules/**/*'],
|
|
386
|
-
exclude: ['**/node_modules/adapt-*/**']
|
|
386
|
+
exclude: ['**/node_modules/adapt-*/**', '**/node_modules/@*/adapt-*/**']
|
|
387
387
|
}),
|
|
388
388
|
injectProcessEnv({
|
|
389
389
|
NODE_ENV: isSourceMapped ? 'development' : 'production'
|
package/package.json
CHANGED