Feture #52: Social Media Integration, BugFix: #89 Sates as ng-select, send Listing as EMail to friend
This commit is contained in:
@@ -43,25 +43,4 @@ export class FavoritesComponent {
|
||||
const result = await Promise.all([await this.listingsService.getFavoriteListings('business'), await this.listingsService.getFavoriteListings('commercialProperty')]);
|
||||
this.favorites = [...result[0], ...result[1]];
|
||||
}
|
||||
// listings: Array<ListingType> = []; //dataListings as unknown as Array<BusinessListing>;
|
||||
// myListings: Array<ListingType>;
|
||||
// user: User;
|
||||
// constructor(
|
||||
// public userService: UserService,
|
||||
// public keycloakService: KeycloakService,
|
||||
// private listingsService: ListingsService,
|
||||
// private cdRef: ChangeDetectorRef,
|
||||
// public selectOptions: SelectOptionsService,
|
||||
// private messageService: MessageService,
|
||||
// private confirmationService: ConfirmationService,
|
||||
// ) {}
|
||||
// async ngOnInit() {
|
||||
// // const keycloakUser = this.userService.getKeycloakUser();
|
||||
// const token = await this.keycloakService.getToken();
|
||||
// const keycloakUser = map2User(token);
|
||||
// const email = keycloakUser.email;
|
||||
// this.user = await this.userService.getByMail(email);
|
||||
// const result = await Promise.all([await this.listingsService.getListingsByEmail(this.user.email, 'business'), await this.listingsService.getListingsByEmail(this.user.email, 'commercialProperty')]);
|
||||
// this.myListings = [...result[0], ...result[1]];
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user