Einbau klassische Filter als Overlay ...
This commit is contained in:
@@ -39,11 +39,11 @@ export class SelectOptionsService {
|
||||
getState(value: string): string {
|
||||
return this.states.find(l => l.value === value)?.name;
|
||||
}
|
||||
getBusiness(value: number): string {
|
||||
return this.typesOfBusiness.find(t => t.value === String(value))?.name;
|
||||
getBusiness(value: string): string {
|
||||
return this.typesOfBusiness.find(t => t.value === value)?.name;
|
||||
}
|
||||
getCommercialProperty(value: number): string {
|
||||
return this.typesOfCommercialProperty.find(t => t.value === String(value))?.name;
|
||||
getCommercialProperty(value: string): string {
|
||||
return this.typesOfCommercialProperty.find(t => t.value === value)?.name;
|
||||
}
|
||||
getListingsCategory(value: string): string {
|
||||
return this.listingCategories.find(l => l.value === value)?.name;
|
||||
@@ -57,14 +57,14 @@ export class SelectOptionsService {
|
||||
getIconType(value: string): string {
|
||||
return this.typesOfBusiness.find(c => c.value === value)?.icon;
|
||||
}
|
||||
getTextColorType(value: number): string {
|
||||
return this.typesOfBusiness.find(c => c.value === String(value))?.textColorClass;
|
||||
getTextColorType(value: string): string {
|
||||
return this.typesOfBusiness.find(c => c.value === value)?.textColorClass;
|
||||
}
|
||||
getIconAndTextColorType(value: number): string {
|
||||
const category = this.typesOfBusiness.find(c => c.value === String(value));
|
||||
getIconAndTextColorType(value: string): string {
|
||||
const category = this.typesOfBusiness.find(c => c.value === value);
|
||||
return `${category?.icon} ${category?.textColorClass}`;
|
||||
}
|
||||
getIconTypeOfCommercials(value: number): string {
|
||||
return this.typesOfCommercialProperty.find(c => c.value === String(value))?.icon;
|
||||
getIconTypeOfCommercials(value: string): string {
|
||||
return this.typesOfCommercialProperty.find(c => c.value === value)?.icon;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user