Skip to content

Commit

Permalink
fix shared
Browse files Browse the repository at this point in the history
  • Loading branch information
wozmin committed Jun 21, 2019
1 parent 0669cbc commit 15e7538
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/shared-realty-details/shared-realty.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ export class SharedRealtyComponent implements OnInit {
ngOnInit() {
this.selectedLanguage = this.languages.find(lang => lang.id === this._translateService.currentLang);
this._spinnerService.isLoading.next(true);
this._route.params.pipe(
map(params => params['id']),
switchMap(uid => this._realtyService.getById(uid))
this._route.queryParams.pipe(
map(params => params['uid']),
switchMap(uid => this._realtyService.getRealtyDetailsBySharedKey(uid))
).subscribe((realty:RealtyDetails)=>{
this._spinnerService.isLoading.next(false);
this.realty = realty;
this.realty.ownerName = "Taras Sheketa";
this.realty.ownerPhone = "380979120963";
// this.realty.ownerName = "Taras Sheketa";
// this.realty.ownerPhone = "380979120963";
// this.realtyForm.disable();
this.galleryOptions = [
{
Expand Down

0 comments on commit 15e7538

Please sign in to comment.