user preferences - chord type

This commit is contained in:
2020-03-22 14:06:50 +01:00
committed by smuddy
parent 7d8f6dd80b
commit aa57dc2ce3
19 changed files with 93 additions and 21 deletions

View File

@@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
import {UserService} from '../../../services/user.service';
import {Observable} from 'rxjs';
import {User} from '../../../services/user';
import {ChordMode} from '../../../widget-modules/components/song-text/song-text.component';
@Component({
selector: 'app-info',
@@ -18,4 +19,8 @@ export class InfoComponent implements OnInit {
this.user$ = this.userService.user$;
}
public async onChordModeChanged(uid: string, value: ChordMode): Promise<void> {
await this.userService.update$(uid, {chordMode: value});
}
}