Cleanup
This commit is contained in:
parent
039799a775
commit
84b2bfdde1
@ -205,7 +205,6 @@ export class BoardAdmin {
|
||||
user.selected = true;
|
||||
}
|
||||
});
|
||||
console.log(board);
|
||||
}
|
||||
|
||||
this.modal.open(this.MODAL_ID);
|
||||
|
@ -15,7 +15,6 @@ export class BoardAdminService {
|
||||
|
||||
addBoard(board: BoardData): Observable<ApiResponse> {
|
||||
let newBoard = this.convertForApi(board);
|
||||
console.log(newBoard);
|
||||
|
||||
return this.http.post('api/boards', newBoard)
|
||||
.map(res => {
|
||||
|
@ -50,6 +50,11 @@ export class UserAdmin {
|
||||
this.replaceUser(activeUser);
|
||||
});
|
||||
|
||||
settings.boardsChanged
|
||||
.subscribe(boards => {
|
||||
this.boards = boards;
|
||||
});
|
||||
|
||||
settings.getUsers()
|
||||
.subscribe((response: ApiResponse) => {
|
||||
this.users = response.data[1];
|
||||
@ -92,6 +97,7 @@ export class UserAdmin {
|
||||
|
||||
this.userService.editUser(this.modalProps.user)
|
||||
.subscribe((response: ApiResponse) => {
|
||||
console.log(response);
|
||||
response.alerts.forEach(note => this.notes.add(note));
|
||||
|
||||
this.replaceUser(JSON.parse(response.data[1]));
|
||||
|
Reference in New Issue
Block a user