-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce forms to send reserve reviews
- Loading branch information
1 parent
517a28e
commit 7852c5f
Showing
8 changed files
with
91 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,4 +84,8 @@ ngb-rating { | |
top: 4.5vh; | ||
color: #707070; | ||
font: Arial | ||
} | ||
|
||
ngb-rating{ | ||
outline: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 15 additions & 5 deletions
20
...ralBookingFrontend/Uru_NaturalBookingFrontend/src/app/features/services/review.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { ReviewModelForResponse } from 'src/app/models/ReviewModelForResponse'; | ||
import { environment } from 'src/environments/environment'; | ||
import { ReviewModelForRequest } from '../../models/ReviewModelForRequest'; | ||
import { Observable } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class ReviewService { | ||
|
||
constructor() { } | ||
uri = `${environment.baseUrl}api/reviews`; | ||
|
||
comment(review: ReviewModelForRequest): ReviewModelForResponse { | ||
return; | ||
// this is a call into the method of webAPI in controller ReviewController POST | ||
} | ||
|
||
constructor(private http: HttpClient) { } | ||
|
||
comment( | ||
review: ReviewModelForRequest | ||
): Observable<ReviewModelForResponse> { | ||
return this.http.post<ReviewModelForResponse>( | ||
this.uri, | ||
review | ||
); | ||
} | ||
|
||
} |