Cleanup
This commit is contained in:
parent
53e89426d4
commit
11a4eb0cfb
@ -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 => {
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user