diff --git a/src/app/editors/2D-editor/2D-editor.component.ts b/src/app/editors/2D-editor/2D-editor.component.ts index 9daaa625a..409280adf 100644 --- a/src/app/editors/2D-editor/2D-editor.component.ts +++ b/src/app/editors/2D-editor/2D-editor.component.ts @@ -180,8 +180,7 @@ export class TwoDEditorComponent extends OCTRAEditor implements OnInit, AfterVie this.viewer.settings.stepWidthRatio = (this.viewer.settings.pixelPerSec / this.audiomanager.ressource.info.samplerate); this.viewer.settings.showTimePerLine = true; this.viewer.settings.showTranscripts = true; - this.viewer.settings.asr.enabled = (this.appStorage.usemode === 'online' || this.appStorage.usemode === 'demo' || this.appStorage.usemode === 'local') - && this.settingsService.isASREnabled; + this.viewer.settings.asr.enabled = this.settingsService.isASREnabled; this.viewer.name = 'multiline viewer'; this.viewer.secondsPerLine = this.appStorage.secondsPerLine; diff --git a/src/app/editors/2D-editor/transcr-window/transcr-window.component.html b/src/app/editors/2D-editor/transcr-window/transcr-window.component.html index d9eab5920..1e8a4aebe 100644 --- a/src/app/editors/2D-editor/transcr-window/transcr-window.component.html +++ b/src/app/editors/2D-editor/transcr-window/transcr-window.component.html @@ -3,8 +3,7 @@ <fa-icon icon="times" class="close" (click)="close();"></fa-icon> </div> <app-asr-options [audioChunk]="audiochunk" [enabled]="editor.rawText === ''" - *ngIf="(appStorage.usemode === 'demo' || appStorage.usemode === 'local') - && settingsService.isASREnabled"></app-asr-options> + *ngIf="settingsService.isASREnabled"></app-asr-options> <app-audio-navigation #audionav (buttonclick)="onButtonClick($event)" (volumechange)="onVolumeChange($event)"