Fix TSLint issues.

This commit is contained in:
Matthew Ross 2017-01-27 18:41:58 -05:00
parent 3009e8a360
commit 4ef99299e4
2 changed files with 13 additions and 13 deletions

View File

@ -66,7 +66,7 @@ export class BoardAdmin {
this.sortFilter = 'name-asc';
auth.userChanged.subscribe((user: User) => {
this.updateActiveUser(user)
this.updateActiveUser(user);
});
settings.usersChanged.subscribe((users: Array<User>) => {
this.updateUsersList(users);
@ -112,14 +112,14 @@ export class BoardAdmin {
if (isAdd) {
this.boardService.addBoard(this.modalProps)
.subscribe((response: ApiResponse) => {
this.handleResponse(response)
this.handleResponse(response);
});
return;
}
this.boardService.editBoard(this.modalProps)
.subscribe((response: ApiResponse) => {
this.handleResponse(response)
this.handleResponse(response);
});
}
@ -128,7 +128,7 @@ export class BoardAdmin {
this.boardService.removeBoard(this.boardToRemove.id)
.subscribe((response: ApiResponse) => {
this.handleResponse(response)
this.handleResponse(response);
});
}
@ -140,7 +140,7 @@ export class BoardAdmin {
this.boardService.editBoard(boardData)
.subscribe((response: ApiResponse) => {
this.handleResponse(response)
this.handleResponse(response);
});
}

View File

@ -119,19 +119,19 @@ export class UserSettings implements OnInit {
this.changeUsername.submitted = false;
this.settings.getBoards()
.subscribe((response: ApiResponse) => {
let boardData = response.data[1],
.subscribe((apiResponse: ApiResponse) => {
let boardData = apiResponse.data[1],
boards: Array<Board> = [];
if (boardData) {
boardData.forEach((board: any) => {
boards.push(new Board(+board.id, board.name,
board.is_active === '1',
board.ownColumn,
board.ownCategory,
board.ownAutoAction,
board.ownIssuetracker,
board.sharedUser));
board.is_active === '1',
board.ownColumn,
board.ownCategory,
board.ownAutoAction,
board.ownIssuetracker,
board.sharedUser));
});
this.settings.updateBoards(boards);