This commit is contained in:
kiswa 2016-08-26 20:50:58 +00:00
parent 53e89426d4
commit 11a4eb0cfb
2 changed files with 3 additions and 1 deletions

View File

@ -54,11 +54,12 @@ export class UserAdmin {
private auth: AuthService,
private settings: SettingsService,
private modal: ModalService) {
this.modalProps = new ModalProperties('', '', new ModalUser());
this.MODAL_ID = 'user-addEdit-form';
this.MODAL_CONFIRM_ID = 'user-remove-confirm';
this.users = [];
this.boards = [];
this.modalProps = new ModalProperties('', '', new ModalUser());
auth.userChanged
.subscribe(activeUser => {

View File

@ -101,6 +101,7 @@ export class UserSettingsService {
return this.http.post('api/users/' + this.activeUser.id + '/opts', json)
.map(res => {
let response: ApiResponse = res.json();
this.auth.updateUser(JSON.parse(response.data[2]));
return response;