account changes
This commit is contained in:
@@ -3,16 +3,16 @@ import { SelectOptionsService } from './select-options.service.js';
|
||||
|
||||
@Controller('select-options')
|
||||
export class SelectOptionsController {
|
||||
constructor(private selectOptionsService:SelectOptionsService){}
|
||||
@Get()
|
||||
getSelectOption():any{
|
||||
return {
|
||||
typesOfBusiness:this.selectOptionsService.typesOfBusiness,
|
||||
prices:this.selectOptionsService.prices,
|
||||
listingCategories:this.selectOptionsService.listingCategories,
|
||||
categories:this.selectOptionsService.categories,
|
||||
locations:this.selectOptionsService.locations,
|
||||
typesOfCommercialProperty:this.selectOptionsService.typesOfCommercialProperty,
|
||||
}
|
||||
}
|
||||
constructor(private selectOptionsService: SelectOptionsService) {}
|
||||
@Get()
|
||||
getSelectOption(): any {
|
||||
return {
|
||||
typesOfBusiness: this.selectOptionsService.typesOfBusiness,
|
||||
prices: this.selectOptionsService.prices,
|
||||
listingCategories: this.selectOptionsService.listingCategories,
|
||||
customerTypes: this.selectOptionsService.customerTypes,
|
||||
locations: this.selectOptionsService.locations,
|
||||
typesOfCommercialProperty: this.selectOptionsService.typesOfCommercialProperty,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,9 +39,14 @@ export class SelectOptionsService {
|
||||
{ name: 'Business', value: 'business' },
|
||||
{ name: 'Commercial Property', value: 'commercialProperty' },
|
||||
];
|
||||
public categories: Array<KeyValueStyle> = [
|
||||
{ name: 'Broker', value: 'broker', icon: 'pi-image', bgColorClass: 'bg-green-100', textColorClass: 'text-green-600' },
|
||||
{ name: 'Professional', value: 'professional', icon: 'pi-globe', bgColorClass: 'bg-yellow-100', textColorClass: 'text-yellow-600' },
|
||||
public customerTypes: Array<KeyValue> = [
|
||||
{ name: 'Buyer', value: 'buyer' },
|
||||
{ name: 'Broker', value: 'broker' },
|
||||
{ name: 'Professional', value: 'professional' },
|
||||
];
|
||||
public gender: Array<KeyValue> = [
|
||||
{ name: 'Male', value: 'male' },
|
||||
{ name: 'Female', value: 'female' },
|
||||
];
|
||||
public imageTypes: ImageType[] = [
|
||||
{ name: 'propertyPicture', upload: 'uploadPropertyPicture', delete: 'propertyPicture' },
|
||||
|
||||
Reference in New Issue
Block a user