Cleanup
This commit is contained in:
parent
53e89426d4
commit
11a4eb0cfb
@ -54,11 +54,12 @@ export class UserAdmin {
|
|||||||
private auth: AuthService,
|
private auth: AuthService,
|
||||||
private settings: SettingsService,
|
private settings: SettingsService,
|
||||||
private modal: ModalService) {
|
private modal: ModalService) {
|
||||||
this.modalProps = new ModalProperties('', '', new ModalUser());
|
|
||||||
this.MODAL_ID = 'user-addEdit-form';
|
this.MODAL_ID = 'user-addEdit-form';
|
||||||
this.MODAL_CONFIRM_ID = 'user-remove-confirm';
|
this.MODAL_CONFIRM_ID = 'user-remove-confirm';
|
||||||
|
|
||||||
this.users = [];
|
this.users = [];
|
||||||
this.boards = [];
|
this.boards = [];
|
||||||
|
this.modalProps = new ModalProperties('', '', new ModalUser());
|
||||||
|
|
||||||
auth.userChanged
|
auth.userChanged
|
||||||
.subscribe(activeUser => {
|
.subscribe(activeUser => {
|
||||||
|
@ -101,6 +101,7 @@ export class UserSettingsService {
|
|||||||
return this.http.post('api/users/' + this.activeUser.id + '/opts', json)
|
return this.http.post('api/users/' + this.activeUser.id + '/opts', json)
|
||||||
.map(res => {
|
.map(res => {
|
||||||
let response: ApiResponse = res.json();
|
let response: ApiResponse = res.json();
|
||||||
|
|
||||||
this.auth.updateUser(JSON.parse(response.data[2]));
|
this.auth.updateUser(JSON.parse(response.data[2]));
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
Reference in New Issue
Block a user