Skip to content

Commit

Permalink
feat(AT): Add option for regular/tabbed navigation. Hide project scri…
Browse files Browse the repository at this point in the history
…pt input
  • Loading branch information
hirokiterashima committed Oct 15, 2024
1 parent 8e07915 commit 95b9655
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@
></textarea>
</mat-form-field>
</div>
<div>
<label id="navigation-type-label" i18n>Navigation mode:</label>
<mat-radio-group
aria-labelledby="navigation-type-label"
[(ngModel)]="navigationType"
(ngModelChange)="updateNavigationType()"
>
<mat-radio-button color="primary" value="default" i18n
>Default (lessons appear in a drop-down list)</mat-radio-button
>
<mat-radio-button color="primary" value="tab" i18n
>Tabbed (lessons appear as tabs)
</mat-radio-button>
</mat-radio-group>
</div>
<!--
<div fxLayout="row wrap" fxLayoutGap="8px" fxLayoutAlign="start center">
<mat-form-field style="width: 400px; max-width: 100%">
<mat-label i18n>Script Filename</mat-label>
Expand All @@ -67,6 +83,7 @@
<mat-icon>attach_file</mat-icon>
</button>
</div>
-->
<div fxLayout="row wrap" fxLayoutGap="8px" fxLayoutAlign="start center">
<mat-form-field style="width: 400px; max-width: 100%">
<mat-label i18n>Unit URL</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { filter } from 'rxjs/operators';
})
export class AdvancedProjectAuthoringComponent {
protected jsonDisplayed: boolean;
protected navigationType: string = 'default';
private projectId: number;
protected projectJSONString: string;
protected projectScriptFilename: string;
Expand Down Expand Up @@ -131,4 +132,9 @@ export class AdvancedProjectAuthoringComponent {
}
this.projectService.saveProject();
}

protected updateNavigationType(): void {
this.projectService.project.theme = this.navigationType;
this.projectService.saveProject();
}
}
27 changes: 17 additions & 10 deletions src/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,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/advanced/advanced-project-authoring.component.ts</context>
<context context-type="linenumber">55</context>
<context context-type="linenumber">56</context>
</context-group>
</trans-unit>
<trans-unit id="2af3e40232b763ae8a6cba9f4bb455ed49d4f86c" datatype="html">
Expand Down Expand Up @@ -9895,39 +9895,46 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<context context-type="linenumber">49</context>
</context-group>
</trans-unit>
<trans-unit id="9203b05eb7515e937cc5e5d8cbc8a03195bb2d7f" datatype="html">
<source>Script Filename</source>
<trans-unit id="aa3959bc16313e8798209b3aaee7985fc6a246a2" datatype="html">
<source>Navigation mode:</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">54</context>
</context-group>
</trans-unit>
<trans-unit id="9fabdfadf0453602acf388171bd4f758df47e1a7" datatype="html">
<source>Choose</source>
<trans-unit id="c1628a55788dfc4796fdfe902f88f0ecf241be28" datatype="html">
<source>Default (lessons appear in a drop-down list)</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">62</context>
<context context-type="linenumber">61</context>
</context-group>
</trans-unit>
<trans-unit id="73b8427966dc9a8002217c4719c54677b9cd1bcc" datatype="html">
<source>Tabbed (lessons appear as tabs) </source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.html</context>
<context context-type="linenumber">64,65</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">72</context>
<context context-type="linenumber">89</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">79</context>
<context context-type="linenumber">96</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">90</context>
<context context-type="linenumber">107</context>
</context-group>
</trans-unit>
<trans-unit id="2584586546524894002" datatype="html">
Expand Down

0 comments on commit 95b9655

Please sign in to comment.