adapt-authoring-ui 2.0.4 → 2.0.6
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.
|
@@ -26,6 +26,7 @@ define(function(require) {
|
|
|
26
26
|
await Promise.all([
|
|
27
27
|
new Promise (async (resolve) => {
|
|
28
28
|
const content = new ContentCollection(undefined, { _courseId: Origin.location.route1 });
|
|
29
|
+
content.queryOptions = { limit: 0 };
|
|
29
30
|
await content.fetch();
|
|
30
31
|
Origin.editor.data.content = content;
|
|
31
32
|
Origin.editor.data.course = content.findWhere({ _type: 'course' });
|
|
@@ -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/package.json
CHANGED