adjust fixtures
This commit is contained in:
parent
9ab7a128f3
commit
10c8d02b77
@ -230,8 +230,11 @@ export class EditHotelComponent implements OnInit {
|
|||||||
rating: this.form.value.rating,
|
rating: this.form.value.rating,
|
||||||
id: this.hotel?.id ?? 0,
|
id: this.hotel?.id ?? 0,
|
||||||
tags: this.form.value.tags ?? [],
|
tags: this.form.value.tags ?? [],
|
||||||
email: this.form.value.email,
|
email: this.activeContact === 'email' ? this.emailGroup.value.email : '',
|
||||||
phoneNumber: this.form.value.phoneNumber,
|
phoneNumber:
|
||||||
|
this.activeContact === 'phoneNumber'
|
||||||
|
? this.phoneNumberGroup.value.phoneNumber
|
||||||
|
: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
this.updateHotel.emit(hotel);
|
this.updateHotel.emit(hotel);
|
||||||
|
@ -13,7 +13,7 @@ export class HotelDataService implements InMemoryDbService {
|
|||||||
rating: 3.5,
|
rating: 3.5,
|
||||||
tags: ['Meer', 'Berge'],
|
tags: ['Meer', 'Berge'],
|
||||||
email: 'buea@mail.com',
|
email: 'buea@mail.com',
|
||||||
phoneNumber: '1234567890',
|
phoneNumber: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
@ -24,7 +24,7 @@ export class HotelDataService implements InMemoryDbService {
|
|||||||
rating: 5,
|
rating: 5,
|
||||||
tags: ['Meer', 'Berge'],
|
tags: ['Meer', 'Berge'],
|
||||||
email: 'marrakesch@mail.com',
|
email: 'marrakesch@mail.com',
|
||||||
phoneNumber: '1234567890',
|
phoneNumber: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
@ -35,7 +35,7 @@ export class HotelDataService implements InMemoryDbService {
|
|||||||
rating: 4,
|
rating: 4,
|
||||||
tags: ['Meer', 'Berge'],
|
tags: ['Meer', 'Berge'],
|
||||||
email: 'abuja@mail.com',
|
email: 'abuja@mail.com',
|
||||||
phoneNumber: '1234567890',
|
phoneNumber: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
@ -46,7 +46,7 @@ export class HotelDataService implements InMemoryDbService {
|
|||||||
rating: 2.5,
|
rating: 2.5,
|
||||||
tags: ['Meer', 'Berge'],
|
tags: ['Meer', 'Berge'],
|
||||||
email: 'our@mail.com',
|
email: 'our@mail.com',
|
||||||
phoneNumber: '1234567890',
|
phoneNumber: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user