mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed #3770
This commit is contained in:
parent
0afe5de211
commit
d54471b6e8
1 changed files with 2 additions and 1 deletions
|
@ -115,11 +115,12 @@ export class MovieDetailsComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async approve() {
|
public async approve() {
|
||||||
|
this.movie.approved = true;
|
||||||
const result = await this.requestService.approveMovie({ id: this.movieRequest.id }).toPromise();
|
const result = await this.requestService.approveMovie({ id: this.movieRequest.id }).toPromise();
|
||||||
if (result.result) {
|
if (result.result) {
|
||||||
this.movie.approved = false;
|
|
||||||
this.messageService.send("Successfully Approved", "Ok");
|
this.messageService.send("Successfully Approved", "Ok");
|
||||||
} else {
|
} else {
|
||||||
|
this.movie.approved = false;
|
||||||
this.messageService.send(result.errorMessage, "Ok");
|
this.messageService.send(result.errorMessage, "Ok");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue