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

@@ -18,4 +18,8 @@ export class UserService {
switchMap(auth => this.db.doc$<User>('user/' + auth.uid))
);
}
public async update$(uid: string, data: Partial<User>): Promise<void> {
await this.db.doc<User>('user/' + uid).update(data);
}
}

View File

@@ -1,5 +1,8 @@
import {ChordMode} from '../widget-modules/components/song-text/song-text.component';
export interface User {
id: string;
name: string;
role: 'admin';
chordMode: ChordMode
}