Skip to content

Commit

Permalink
feat(Unit Authoring): Move advanced settings button to side menu #1478 (
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima authored Oct 20, 2023
1 parent eca7ddb commit 7f12dc0
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
<div fxLayout="row wrap" fxLayoutGap="8px" fxLayoutAlign="start center">
<button
mat-raised-button
color="primary"
id="backToProjectButton"
class="topButton"
matTooltip="Back to Unit Plan"
matTooltipPosition="above"
i18n-matTooltip
routerLink=".."
>
<mat-icon>arrow_back</mat-icon>
</button>
<button
mat-raised-button
color="primary"
Expand Down
7 changes: 7 additions & 0 deletions src/assets/wise5/authoringTool/authoring-tool.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ export class AuthoringToolComponent {
type: 'primary',
active: true
},
{
route: ['unit', this.projectId, 'advanced'],
name: $localize`Advanced Settings`,
icon: 'build',
type: 'primary',
active: true
},
{
route: ['home'],
name: $localize`Unit List`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@
>
<mat-icon>delete</mat-icon>
</button>
<button
mat-raised-button
color="primary"
(click)="goToAdvancedAuthoring()"
[disabled]="stepNodeSelected || groupNodeSelected"
matTooltip="Advanced"
matTooltipPosition="above"
i18n-matTooltip
>
<mat-icon>build</mat-icon>
</button>
<span fxFlex></span>
<button
mat-raised-button
color="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ export class ProjectAuthoringComponent {
this.router.navigate([`/teacher/edit/unit/${this.projectId}/add-node/choose-template`]);
}

protected goToAdvancedAuthoring(): void {
this.router.navigate([`/teacher/edit/unit/${this.projectId}/advanced`]);
}

protected isNodeInAnyBranchPath(nodeId: string): boolean {
return this.projectService.isNodeInAnyBranchPath(nodeId);
}
Expand Down
68 changes: 32 additions & 36 deletions src/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">30</context>
<context context-type="linenumber">18</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/node/advanced/node-advanced-authoring/node-advanced-authoring.component.html</context>
Expand Down Expand Up @@ -1455,7 +1455,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">74</context>
<context context-type="linenumber">62</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html</context>
Expand Down Expand Up @@ -9393,32 +9393,25 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<context context-type="linenumber">25,27</context>
</context-group>
</trans-unit>
<trans-unit id="44fcb249525dd82d1fd32cae51412bcda7ffd765" datatype="html">
<source>Back to Unit Plan</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">7</context>
</context-group>
</trans-unit>
<trans-unit id="2845783fa6ce5e23d36879061c96b5b195d2d088" datatype="html">
<source>Show Rubric</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">18</context>
<context context-type="linenumber">6</context>
</context-group>
</trans-unit>
<trans-unit id="a7ff0a41fdb9b51a30db6bed1494c740274cbb84" datatype="html">
<source>Download Unit</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">41</context>
<context context-type="linenumber">29</context>
</context-group>
</trans-unit>
<trans-unit id="e810aa7f08f531d99ef09adc501a8dded58d34fb" datatype="html">
<source>Edit Unit JSON</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">55</context>
<context context-type="linenumber">43</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/recovery-authoring/recovery-authoring.component.html</context>
Expand All @@ -9429,35 +9422,35 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<source>Script Filename</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">67</context>
<context context-type="linenumber">55</context>
</context-group>
</trans-unit>
<trans-unit id="9fabdfadf0453602acf388171bd4f758df47e1a7" datatype="html">
<source>Choose</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">74</context>
<context context-type="linenumber">62</context>
</context-group>
</trans-unit>
<trans-unit id="0435f6f300b78e13d48ecd2ee6e404d40df04188" datatype="html">
<source>Unit URL</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">84</context>
<context context-type="linenumber">72</context>
</context-group>
</trans-unit>
<trans-unit id="3eb7b66b266bf315436e1888846133dd8106ca43" datatype="html">
<source>Copy Unit URL to Clipboard</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">91</context>
<context context-type="linenumber">79</context>
</context-group>
</trans-unit>
<trans-unit id="29024835e83ded5ae9cb4e4be0c3fba290a185b9" datatype="html">
<source>Open Unit URL in New Tab</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">102</context>
<context context-type="linenumber">90</context>
</context-group>
</trans-unit>
<trans-unit id="2584586546524894002" datatype="html">
Expand Down Expand Up @@ -9530,18 +9523,25 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<context context-type="linenumber">44</context>
</context-group>
</trans-unit>
<trans-unit id="8360107325291301836" datatype="html">
<source>Advanced Settings</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">92</context>
</context-group>
</trans-unit>
<trans-unit id="1422076554976852397" datatype="html">
<source>Unit List</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">92</context>
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="2304476742154607725" datatype="html">
<source>You have been inactive for a long time. Do you want to stay logged in?</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">106</context>
<context context-type="linenumber">113</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/classroomMonitor/classroom-monitor.component.ts</context>
Expand All @@ -9556,7 +9556,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<source>Session Timeout</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">107</context>
<context context-type="linenumber">114</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/classroomMonitor/classroom-monitor.component.ts</context>
Expand All @@ -9571,32 +9571,32 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<source>Saving...</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">131</context>
<context context-type="linenumber">138</context>
</context-group>
</trans-unit>
<trans-unit id="6333335057236774263" datatype="html">
<source>Saved</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">145</context>
<context context-type="linenumber">152</context>
</context-group>
</trans-unit>
<trans-unit id="6634710158550020332" datatype="html">
<source>Error Saving Unit. Please refresh the page.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">152</context>
<context context-type="linenumber">159</context>
</context-group>
</trans-unit>
<trans-unit id="586193560737361056" datatype="html">
<source>You do not have permission to edit this unit.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">159</context>
<context context-type="linenumber">166</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/authoring-tool.component.ts</context>
<context context-type="linenumber">192</context>
<context context-type="linenumber">199</context>
</context-group>
</trans-unit>
<trans-unit id="8d558c05faf7e8ec36f7bc0a46e5a2cf6874196e" datatype="html">
Expand All @@ -9622,7 +9622,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">162</context>
<context context-type="linenumber">150</context>
</context-group>
</trans-unit>
<trans-unit id="a10dba8eb1f22a5f90f90e79b8305963eec3ee38" datatype="html">
Expand All @@ -9637,7 +9637,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">229</context>
<context context-type="linenumber">217</context>
</context-group>
</trans-unit>
<trans-unit id="0217500199a3e48a7b95762b14b79dad49e76beb" datatype="html">
Expand All @@ -9652,7 +9652,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">230</context>
<context context-type="linenumber">218</context>
</context-group>
</trans-unit>
<trans-unit id="f951d80b53d5536f79142285e8ba09f190a3c723" datatype="html">
Expand Down Expand Up @@ -11413,10 +11413,6 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<context context-type="sourcefile">src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.html</context>
<context context-type="linenumber">190</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">63</context>
</context-group>
</trans-unit>
<trans-unit id="90c4e4785a98ff9c710d707d8e079c584fb9af48" datatype="html">
<source>Back to unit</source>
Expand Down Expand Up @@ -12041,7 +12037,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
}}"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">121,123</context>
<context context-type="linenumber">109,111</context>
</context-group>
</trans-unit>
<trans-unit id="3374b45efd7fad4f098ebbfb6a888d7236906a0c" datatype="html">
Expand All @@ -12050,7 +12046,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
}}"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">131,133</context>
<context context-type="linenumber">119,121</context>
</context-group>
</trans-unit>
<trans-unit id="6a6a2c1fda09ebe6ab5a6a8313989c4cf4d8b194" datatype="html">
Expand All @@ -12059,14 +12055,14 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
}}"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">141,143</context>
<context context-type="linenumber">129,131</context>
</context-group>
</trans-unit>
<trans-unit id="b3b4847175a6193afa85eb431bbe16d1f04470fa" datatype="html">
<source>Has Rubric</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">150</context>
<context context-type="linenumber">138</context>
</context-group>
</trans-unit>
<trans-unit id="791981839110791639" datatype="html">
Expand Down

0 comments on commit 7f12dc0

Please sign in to comment.