File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 88 >
99 < ion-button
1010 *ngFor ="let verb of (verbsState.verbsWithFiles | async) "
11- (click) ="reproduceAudio(verb.audio ) "
11+ (click) ="reproduceAudio(verb) "
1212 [style.fontSize] ="(settingsStateService.verbButtonSize$ | async) + 'px' "
1313 >
1414 {{ verb.text }}
3131 < ng-template #itemTemplate let-item ="item ">
3232 < div
3333 class ="image-container "
34- (click) ="reproduceAudio(item.audio ) "
34+ (click) ="reproduceAudio(item) "
3535 [style.height] ="(settingsStateService.itemImageWidth$ | async) + 'px' "
3636 [style.backgroundImage] ="'url(' + item.image?.computedWebPath + ')' "
3737 > </ div >
Original file line number Diff line number Diff line change 11import { Component , OnInit } from '@angular/core' ;
2- import { FileData } from 'src/core/models/file-data.model ' ;
2+ import { ElementWithAudio } from 'src/core/models/element-with-audio.interface ' ;
33import { AppTranslateService } from 'src/core/modules/translate/translate.service' ;
44import { AudioService } from 'src/core/services/audio.service' ;
55import { ItemsStateService } from 'src/core/state/items.state' ;
@@ -28,8 +28,8 @@ export class HomePage implements OnInit {
2828 this . init ( ) ;
2929 }
3030
31- reproduceAudio ( audio : FileData < any > ) : void {
32- this . audioService . playAudioFile ( audio ) ;
31+ reproduceAudio ( element : ElementWithAudio ) : void {
32+ this . audioService . reproduceSound ( element ) ;
3333 }
3434
3535 ionViewWillEnter ( ) {
You can’t perform that action at this time.
0 commit comments