diff --git a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.html b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.html index 3019caf4155..3d31503f65c 100644 --- a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.html +++ b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.html @@ -40,6 +40,8 @@
Choose a location for the imported steps.
diff --git a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts index 480b37882dd..7b413eddd1b 100644 --- a/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts +++ b/src/app/authoring-tool/import-step/choose-import-step-location/choose-import-step-location.component.ts @@ -39,14 +39,14 @@ export class ChooseImportStepLocationComponent { this.projectService.refreshProject(); if (nodesWithNewNodeIds.length === 1) { const newNode = nodesWithNewNodeIds[0]; - this.router.navigate(['../../node', newNode.id], { + this.router.navigate(['../../../node', newNode.id], { relativeTo: this.route, state: { newComponents: newNode.components } }); } else { - this.router.navigate(['../..'], { relativeTo: this.route }); + this.router.navigate(['../../..'], { relativeTo: this.route }); } }); }); diff --git a/src/app/authoring-tool/import-step/choose-import-step/choose-import-step.component.html b/src/app/authoring-tool/import-step/choose-import-step/choose-import-step.component.html index dab2916a288..b0cd768fd7b 100644 --- a/src/app/authoring-tool/import-step/choose-import-step/choose-import-step.component.html +++ b/src/app/authoring-tool/import-step/choose-import-step/choose-import-step.component.html @@ -55,7 +55,9 @@
Back - +
diff --git a/src/app/teacher/authoring-routing.module.ts b/src/app/teacher/authoring-routing.module.ts index 7260d1f48d4..595bb1cc21f 100644 --- a/src/app/teacher/authoring-routing.module.ts +++ b/src/app/teacher/authoring-routing.module.ts @@ -90,6 +90,23 @@ const routes: Routes = [ path: 'choose-location', component: ChooseNewNodeLocation }, + { + path: 'import-step', + children: [ + { + path: 'choose-location', + component: ChooseImportStepLocationComponent + }, + { + path: 'choose-step', + component: ChooseImportStepComponent + }, + { + path: 'choose-unit', + component: ChooseImportUnitComponent + } + ] + }, { path: 'simulation', children: [{ path: 'choose-item', component: ChooseSimulationComponent }] @@ -103,23 +120,6 @@ const routes: Routes = [ }, { path: 'choose-copy-location', component: ChooseCopyNodeLocationComponent }, { path: 'choose-move-location', component: ChooseMoveNodeLocationComponent }, - { - path: 'import-step', - children: [ - { - path: 'choose-location', - component: ChooseImportStepLocationComponent - }, - { - path: 'choose-step', - component: ChooseImportStepComponent - }, - { - path: 'choose-unit', - component: ChooseImportUnitComponent - } - ] - }, { path: 'info', component: ProjectInfoAuthoringComponent }, { path: 'milestones', component: MilestonesAuthoringComponent }, { diff --git a/src/assets/wise5/authoringTool/addNode/choose-new-node-template/choose-new-node-template.component.html b/src/assets/wise5/authoringTool/addNode/choose-new-node-template/choose-new-node-template.component.html index 3a12f6ec83a..03577ef8500 100644 --- a/src/assets/wise5/authoringTool/addNode/choose-new-node-template/choose-new-node-template.component.html +++ b/src/assets/wise5/authoringTool/addNode/choose-new-node-template/choose-new-node-template.component.html @@ -1,4 +1,4 @@ -
Start from scratch or choose a step template:
+
Start from scratch, import from another unit, or choose a step template:
widgets -