Fix TSLint issues.
This commit is contained in:
parent
3009e8a360
commit
4ef99299e4
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user