diff --git a/src/Ombi.Core/Engine/RequestEngineResult.cs b/src/Ombi.Core/Engine/RequestEngineResult.cs index 524b37d17..08c61b7ae 100644 --- a/src/Ombi.Core/Engine/RequestEngineResult.cs +++ b/src/Ombi.Core/Engine/RequestEngineResult.cs @@ -9,7 +9,7 @@ namespace Ombi.Core.Engine public string Message { get; set; } public bool IsError => !string.IsNullOrEmpty(ErrorMessage); public string ErrorMessage { get; set; } - public ErrorCode ErrorCode { get; set; } + public ErrorCode? ErrorCode { get; set; } public int RequestId { get; set; } } diff --git a/src/Ombi/ClientApp/src/app/media-details/components/artist/artist-details.component.ts b/src/Ombi/ClientApp/src/app/media-details/components/artist/artist-details.component.ts index f28906b9c..5aebde2e5 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/artist/artist-details.component.ts +++ b/src/Ombi/ClientApp/src/app/media-details/components/artist/artist-details.component.ts @@ -8,6 +8,7 @@ import { AuthService } from "../../../auth/auth.service"; import { DenyDialogComponent } from "../shared/deny-dialog/deny-dialog.component"; import { NewIssueComponent } from "../shared/new-issue/new-issue.component"; import { IArtistSearchResult, IReleaseGroups } from "../../../interfaces/IMusicSearchResultV2"; +import { TranslateService } from "@ngx-translate/core"; @Component({ templateUrl: "./artist-details.component.html", @@ -26,7 +27,8 @@ export class ArtistDetailsComponent { constructor(private searchService: SearchV2Service, private route: ActivatedRoute, private sanitizer: DomSanitizer, private imageService: ImageService, public dialog: MatDialog, private requestService: RequestService, - public messageService: MessageService, private auth: AuthService) { + public messageService: MessageService, private auth: AuthService, + private translate: TranslateService) { this.route.params.subscribe((params: any) => { this.artistId = params.artistId; this.load(); @@ -92,7 +94,7 @@ export class ArtistDetailsComponent { .then(r => { if (r.result) { a.monitored = true; - this.messageService.send(r.message); + this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", {title: a.title})); } else { this.messageService.sendRequestEngineResultError(r); } @@ -115,7 +117,7 @@ export class ArtistDetailsComponent { .then(r => { if (r.result) { a.monitored = true; - this.messageService.send(r.message); + this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", {title: a.title})); } else { this.messageService.sendRequestEngineResultError(r); } diff --git a/src/Ombi/ClientApp/src/app/media-details/components/artist/panels/artist-information-panel/artist-information-panel.component.html b/src/Ombi/ClientApp/src/app/media-details/components/artist/panels/artist-information-panel/artist-information-panel.component.html index a50b59039..4a454fe01 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/artist/panels/artist-information-panel/artist-information-panel.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/artist/panels/artist-information-panel/artist-information-panel.component.html @@ -1,18 +1,18 @@