Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -111,7 +111,6 @@
let nodeData = {
parent: this.nodeId,
kind: 'topic',
title: this.$tr('topicDefaultTitle', { title: this.node.title }),
};
this.createContentNode(nodeData).then(newId => {
this.$router.push({
Expand DownExpand Up@@ -211,7 +210,6 @@
},

$trs: {
topicDefaultTitle: '{title} topic',
newSubtopic: 'New topic',
editTopicDetails: 'Edit topic details',
editDetails: 'Edit details',
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -180,6 +180,11 @@ export function createContentNode(context, { parent, kind, ...payload }) {
...payload,
};

contentNodeData.complete = isNodeComplete({
nodeDetails: contentNodeData,
assessmentItems: [],
files: [],
});
return ContentNode.put(contentNodeData).then(id => {
context.commit('ADD_CONTENTNODE', {
id,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,7 +33,7 @@
"test-jest:debug": "node --inspect node_modules/.bin/jest --runInBand --watch",
"test-jest-cov": "jest --config jest_config/jest.conf.js --coverage",
"minio:test": "rm -rf ~/.minio_test && minio server ~/.minio_test/ || true",
"minio": "MINIO_API_CORS_ALLOW_ORIGIN='http://localhost:8080' MINIO_ACCESS_KEY=development MINIO_SECRET_KEY=development minio server ~/.minio_data/ || true",
"minio": "MINIO_API_CORS_ALLOW_ORIGIN='http://localhost:8080,http://127.0.0.1:8080' MINIO_ACCESS_KEY=development MINIO_SECRET_KEY=development minio server ~/.minio_data/ || true",
"runserver": "cd contentcuration && python manage.py runserver --settings=contentcuration.dev_settings 0.0.0.0:8080",
"runserver:debug-panel": "cd contentcuration && python manage.py runserver --settings=contentcuration.debug_panel_settings 0.0.0.0:8080",
"gunicornserver": "cd contentcuration && DJANGO_SETTINGS_MODULE=contentcuration.profile_settings gunicorn -b 0.0.0.0:8080 --workers=3 --threads=2 contentcuration.wsgi",
Expand Down