Skip to content

Commit

Permalink
Improved default language switching functionality (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
VM8gkAs authored Oct 14, 2024
1 parent dd7a9a3 commit 8e07915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/wise5/authoringTool/authoring-tool.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class AuthoringToolComponent {
}

private getElements(): any[] {
const elementsToDisable = 'button,input,mat-checkbox,textarea,mat-icon[cdkdraghandle]';
const elementsToDisable = 'button,input,textarea,mat-radio-button,mat-checkbox,mat-icon[cdkdraghandle]';
return Array.from(
this.elem.nativeElement.querySelectorAll(`div.main-content ${elementsToDisable}`)
).concat(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class EditProjectLanguageSettingComponent {
protected updateDefaultLanguage(): void {
this.projectLocale.setDefaultLocale(this.defaultLanguage.locale);
this.projectService.saveProject();
this.projectService.setCurrentLanguage(this.defaultLanguage);
this.projectService.uiChanged();
this.updateModel();
}

Expand Down

0 comments on commit 8e07915

Please sign in to comment.