autocomplete off bei numeric fields, Mail Mask emptied after Mail dispatch, unknown listing controller for EMail Listings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { ConsoleFormattedStream, INFO, createLogger as _createLogger, stdSerializers } from 'browser-bunyan';
|
||||
import { jwtDecode } from 'jwt-decode';
|
||||
import { BusinessListingCriteria, CommercialPropertyListingCriteria, JwtToken, KeycloakUser, UserListingCriteria } from '../../../../bizmatch-server/src/models/main.model';
|
||||
import { BusinessListingCriteria, CommercialPropertyListingCriteria, JwtToken, KeycloakUser, MailInfo, UserListingCriteria } from '../../../../bizmatch-server/src/models/main.model';
|
||||
|
||||
// export function createDefaultUser(email: string, firstname: string, lastname: string): User {
|
||||
// return {
|
||||
@@ -154,6 +154,14 @@ export function createEmptyUserListingCriteria(): UserListingCriteria {
|
||||
radius: null,
|
||||
};
|
||||
}
|
||||
export function createMailInfo(user: User): MailInfo {
|
||||
return {
|
||||
sender: { name: `${user.firstname} ${user.lastname}`, email: user.email, phoneNumber: user.phoneNumber, state: user.companyLocation.state, comments: null },
|
||||
email: null,
|
||||
url: environment.mailinfoUrl,
|
||||
listing: null,
|
||||
};
|
||||
}
|
||||
export function createLogger(name: string, level: number = INFO, options: any = {}) {
|
||||
return _createLogger({
|
||||
name,
|
||||
@@ -244,6 +252,8 @@ export function getDialogWidth(dimensions): string {
|
||||
import { initFlowbite } from 'flowbite';
|
||||
import onChange from 'on-change';
|
||||
import { Subject, concatMap, delay, of } from 'rxjs';
|
||||
import { User } from '../../../../bizmatch-server/src/models/db.model';
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
const flowbiteQueue = new Subject<() => void>();
|
||||
|
||||
@@ -387,17 +397,7 @@ export function getCriteriaProxy(path: string, component: any): BusinessListingC
|
||||
}
|
||||
}
|
||||
export function createEnhancedProxy(obj: BusinessListingCriteria | CommercialPropertyListingCriteria | UserListingCriteria, component: any) {
|
||||
// const component = this;
|
||||
|
||||
const sessionStorageHandler = function (path, value, previous, applyData) {
|
||||
// let criteriaType = '';
|
||||
// if ('/businessListings' === window.location.pathname) {
|
||||
// criteriaType = 'business';
|
||||
// } else if ('/commercialPropertyListings' === window.location.pathname) {
|
||||
// criteriaType = 'commercialProperty';
|
||||
// } else if ('/brokerListings' === window.location.pathname) {
|
||||
// criteriaType = 'broker';
|
||||
// }
|
||||
sessionStorage.setItem(`${obj.criteriaType}`, JSON.stringify(this));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user