added account preferences update

pull/3/head
Chris Veilleux 2019-03-21 13:16:26 -05:00
parent 300bc99dfe
commit 6d1b993b77
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ export class DeviceService {
return this.http.get<AccountPreferences>(preferencesUrl);
}
updateAccountPreferences(preferencesForm: FormGroup): void {
this.http.patch<any>(preferencesUrl, preferencesForm.value);
}
addAccountDefaults(defaultsForm: FormGroup) {
this.http.post<any>(defaultsUrl, defaultsForm.value).subscribe();
}