mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
fix: 🐛 Fixed the Request on Behalf of having blanks
This commit is contained in:
parent
87fc5d8fc7
commit
8d5f5eb491
3 changed files with 8 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
import { AfterViewInit, Component, OnInit, ViewChild, ViewEncapsulation } from "@angular/core";
|
||||
import { Component, OnInit, ViewEncapsulation } from "@angular/core";
|
||||
import { ImageService, SearchV2Service, RequestService, MessageService, RadarrService, SettingsStateService } from "../../../services";
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
|
@ -12,7 +12,6 @@ import { NewIssueComponent } from "../shared/new-issue/new-issue.component";
|
|||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { MovieAdvancedOptionsComponent } from "./panels/movie-advanced-options/movie-advanced-options.component";
|
||||
import { RequestServiceV2 } from "../../../services/requestV2.service";
|
||||
import { RequestBehalfComponent } from "../shared/request-behalf/request-behalf.component";
|
||||
import { firstValueFrom, forkJoin } from "rxjs";
|
||||
import { AdminRequestDialogComponent } from "../../../shared/admin-request-dialog/admin-request-dialog.component";
|
||||
import { FeaturesFacade } from "../../../state/features/features.facade";
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
import { Component, Inject, OnInit } from "@angular/core";
|
||||
import { IDenyDialogData } from "../interfaces/interfaces";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
import { RequestService, MessageService, IdentityService } from "../../../../services";
|
||||
import { RequestType, IRequestEngineResult, IUserDropdown } from "../../../../interfaces";
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { map, startWith } from "rxjs/operators";
|
||||
|
||||
import { FormControl } from "@angular/forms";
|
||||
import { IUserDropdown } from "../../../../interfaces";
|
||||
import { IdentityService } from "../../../../services";
|
||||
import { MatDialogRef } from "@angular/material/dialog";
|
||||
import { Observable } from "rxjs";
|
||||
import { filter, map, startWith } from "rxjs/operators";
|
||||
|
||||
|
||||
|
||||
@Component({
|
||||
selector: "request-behalf",
|
||||
|
|
|
@ -96,7 +96,7 @@ export class AdminRequestDialogComponent implements OnInit {
|
|||
public displayFn(user: IUserDropdown): string {
|
||||
const username = user?.username ? user.username : "";
|
||||
const email = user?.email ? `(${user.email})` : "";
|
||||
if (username && email) {
|
||||
if (username || email) {
|
||||
return `${username} ${email}`;
|
||||
}
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue