diff --git a/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.ts b/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.ts index 6cce347..4c3975c 100644 --- a/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.ts +++ b/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.ts @@ -1,5 +1,5 @@ -import { ChangeDetectorRef, Component } from '@angular/core'; import { NgOptimizedImage } from '@angular/common'; +import { ChangeDetectorRef, Component } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; import { LeafletModule } from '@bluehalo/ngx-leaflet'; @@ -7,13 +7,13 @@ import { lastValueFrom } from 'rxjs'; import { BusinessListing, EventTypeEnum, ShareByEMail, User } from '../../../../../../bizmatch-server/src/models/db.model'; import { KeycloakUser, MailInfo } from '../../../../../../bizmatch-server/src/models/main.model'; import { environment } from '../../../../environments/environment'; +import { BreadcrumbItem, BreadcrumbsComponent } from '../../../components/breadcrumbs/breadcrumbs.component'; import { EMailService } from '../../../components/email/email.service'; import { MessageService } from '../../../components/message/message.service'; import { ValidatedInputComponent } from '../../../components/validated-input/validated-input.component'; import { ValidatedNgSelectComponent } from '../../../components/validated-ng-select/validated-ng-select.component'; import { ValidatedTextareaComponent } from '../../../components/validated-textarea/validated-textarea.component'; import { ValidationMessagesService } from '../../../components/validation-messages.service'; -import { BreadcrumbItem, BreadcrumbsComponent } from '../../../components/breadcrumbs/breadcrumbs.component'; import { AuditService } from '../../../services/audit.service'; import { GeoService } from '../../../services/geo.service'; import { HistoryService } from '../../../services/history.service'; @@ -26,13 +26,13 @@ import { SharedModule } from '../../../shared/shared/shared.module'; import { createMailInfo, map2User } from '../../../utils/utils'; // Import für Leaflet // Note: Leaflet requires browser environment - protected by isBrowser checks in base class -import { circle, Circle, Control, DomEvent, DomUtil, icon, Icon, latLng, LatLngBounds, Marker, polygon, Polygon, tileLayer } from 'leaflet'; import dayjs from 'dayjs'; +import { circle, Control, DomEvent, DomUtil, icon, Icon, latLng, LatLngBounds, Marker, polygon, Polygon, tileLayer } from 'leaflet'; +import { provideShareButtonsOptions, SharerMethods, withConfig } from 'ngx-sharebuttons'; +import { ShareButton } from 'ngx-sharebuttons/button'; +import { shareIcons } from 'ngx-sharebuttons/icons'; import { AuthService } from '../../../services/auth.service'; import { BaseDetailsComponent } from '../base-details.component'; -import { ShareButton } from 'ngx-sharebuttons/button'; -import { provideShareButtonsOptions, SharerMethods, withConfig } from 'ngx-sharebuttons'; -import { shareIcons } from 'ngx-sharebuttons/icons'; @Component({ selector: 'app-details-business-listing', standalone: true, @@ -376,7 +376,6 @@ export class DetailsBusinessListingComponent extends BaseDetailsComponent { { label: 'Support & Training', value: this.listing.supportAndTraining }, { label: 'Reason for Sale', value: this.listing.reasonForSale }, { label: 'Broker licensing', value: this.listing.brokerLicencing }, - { label: 'Listed since', value: `${this.dateInserted()} - ${this.getDaysListed()} days` }, { label: 'Listing by', value: null, // Wird nicht verwendet diff --git a/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.ts b/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.ts index 895e433..a8d4355 100644 --- a/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.ts +++ b/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.ts @@ -1,15 +1,18 @@ -import { ChangeDetectorRef, Component, NgZone } from '@angular/core'; import { NgOptimizedImage } from '@angular/common'; +import { ChangeDetectorRef, Component, NgZone } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { ActivatedRoute, Router } from '@angular/router'; import { LeafletModule } from '@bluehalo/ngx-leaflet'; -import { APP_ICONS } from '../../../utils/fontawesome-icons'; import dayjs from 'dayjs'; import { GALLERY_CONFIG, GalleryConfig, GalleryModule, ImageItem } from 'ng-gallery'; +import { provideShareButtonsOptions, SharerMethods, withConfig } from 'ngx-sharebuttons'; +import { ShareButton } from 'ngx-sharebuttons/button'; +import { shareIcons } from 'ngx-sharebuttons/icons'; import { lastValueFrom } from 'rxjs'; import { CommercialPropertyListing, EventTypeEnum, ShareByEMail, User } from '../../../../../../bizmatch-server/src/models/db.model'; import { CommercialPropertyListingCriteria, ErrorResponse, KeycloakUser, MailInfo } from '../../../../../../bizmatch-server/src/models/main.model'; import { environment } from '../../../../environments/environment'; +import { BreadcrumbItem, BreadcrumbsComponent } from '../../../components/breadcrumbs/breadcrumbs.component'; import { EMailService } from '../../../components/email/email.service'; import { MessageService } from '../../../components/message/message.service'; import { ValidatedInputComponent } from '../../../components/validated-input/validated-input.component'; @@ -26,12 +29,9 @@ import { SelectOptionsService } from '../../../services/select-options.service'; import { SeoService } from '../../../services/seo.service'; import { UserService } from '../../../services/user.service'; import { SharedModule } from '../../../shared/shared/shared.module'; +import { APP_ICONS } from '../../../utils/fontawesome-icons'; import { createMailInfo, map2User } from '../../../utils/utils'; import { BaseDetailsComponent } from '../base-details.component'; -import { BreadcrumbItem, BreadcrumbsComponent } from '../../../components/breadcrumbs/breadcrumbs.component'; -import { ShareButton } from 'ngx-sharebuttons/button'; -import { provideShareButtonsOptions, SharerMethods, withConfig } from 'ngx-sharebuttons'; -import { shareIcons } from 'ngx-sharebuttons/icons'; @Component({ selector: 'app-details-commercial-property-listing', @@ -145,7 +145,6 @@ export class DetailsCommercialPropertyListingComponent extends BaseDetailsCompon { label: 'Located in', value: this.selectOptions.getState(this.listing.location.state) }, { label: this.listing.location.name ? 'City' : 'County', value: this.listing.location.name ? this.listing.location.name : this.listing.location.county }, { label: 'Asking Price:', value: `$${this.listing.price?.toLocaleString()}` }, - { label: 'Listed since', value: `${this.dateInserted()} - ${this.getDaysListed()} days` }, { label: 'Listing by', value: null, // Wird nicht verwendet