Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this.getAllBooks();
this.books = new LocalDataSource(this.myBookArray);
this.books.setSort([{ field: 'creationDate', direction: 'desc' }]);
// Carrega Status do ENUM BookDonationStatus
const myBookDonationStatus = new Array();
Object.keys(BookDonationStatus).forEach(key => {
myBookDonationStatus.push({ value: BookDonationStatus[key], title: BookDonationStatus[key] });
});
const btnEdit =
'<span title="Editar Livro" data-toggle="tooltip" class="btn btn-primary btn-sm ml-1 mb-1">' +
' <i class="fa fa-edit"></i> </span>';
const btnCancelDonation =
'<span title="Cancelar Doação" data-toggle="tooltip" class="btn btn-danger btn-sm ml-1 mb-1">' +
' <i class="fa fa-trash"></i> </span>';
const btnDonate =
'<span title="Escolher Donatário" data-toggle="tooltip" class="btn btn-warning btn-sm ml-1 mb-1">' +</span>
constructor(
private dpgService: DpgService,
private shipStoresService: FalShipStoresService,
private modalService: NgbModal,
) {
this.dpgSource = new LocalDataSource(this.dpgOnBoardList);
}
constructor(
private toastr: ToastrService,
private accountService: AccountsApiService
) {
super('');
this.source = new LocalDataSource();
this.loadAccountDetails();
}