not-found page, #85, client logging

This commit is contained in:
2024-08-13 19:06:32 +02:00
parent 1f8febc479
commit a8bb163acf
15 changed files with 233 additions and 185 deletions

View File

@@ -14,6 +14,7 @@ import { ValidationMessagesService } from '../../../components/validation-messag
import { HistoryService } from '../../../services/history.service';
import { ImageService } from '../../../services/image.service';
import { ListingsService } from '../../../services/listings.service';
import { LogService } from '../../../services/log.service';
import { MailService } from '../../../services/mail.service';
import { SelectOptionsService } from '../../../services/select-options.service';
import { UserService } from '../../../services/user.service';
@@ -75,6 +76,7 @@ export class DetailsCommercialPropertyListingComponent {
private ngZone: NgZone,
private validationMessagesService: ValidationMessagesService,
private messageService: MessageService,
private logService: LogService,
) {
this.mailinfo = { sender: {}, email: '', url: environment.mailinfoUrl };
@@ -105,7 +107,8 @@ export class DetailsCommercialPropertyListingComponent {
this.propertyDetails.push({ label: 'Draft', value: this.listing.draft ? 'Yes' : 'No' });
}
} catch (error) {
console.log(error);
this.logService.log({ severity: 'error', text: error.error.message });
this.router.navigate(['notfound']);
}
//this.initFlowbite();