mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
fix(requests): 🐛 Fixed an issue where you couldn't approve movies from the request list
This commit is contained in:
parent
ed0433e374
commit
1611ef9198
2 changed files with 3 additions and 6 deletions
|
@ -154,7 +154,7 @@ export class MoviesGridComponent implements OnInit, AfterViewInit {
|
|||
}
|
||||
|
||||
private checkDate(date: Date|string): boolean {
|
||||
if (date instanceof String) {
|
||||
if (typeof date === 'string') {
|
||||
return new Date(date).getFullYear() > 1;
|
||||
}
|
||||
if (date instanceof Date) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MAT_BOTTOM_SHEET_DATA, MatBottomSheetRef } from '@angular/material/bottom-sheet';
|
||||
import { MessageService, RequestService } from '../../../services';
|
||||
import { IRequestEngineResult, RequestType } from '../../../interfaces';
|
||||
|
@ -10,7 +10,7 @@ import { firstValueFrom, Observable } from 'rxjs';
|
|||
selector: 'request-options',
|
||||
templateUrl: './request-options.component.html',
|
||||
})
|
||||
export class RequestOptionsComponent implements OnInit {
|
||||
export class RequestOptionsComponent {
|
||||
|
||||
public RequestType = RequestType;
|
||||
|
||||
|
@ -19,9 +19,6 @@ export class RequestOptionsComponent implements OnInit {
|
|||
private messageService: MessageService,
|
||||
private bottomSheetRef: MatBottomSheetRef<RequestOptionsComponent>,
|
||||
private translate: TranslateService) { }
|
||||
ngOnInit(): void {
|
||||
console.log(this.data);
|
||||
}
|
||||
|
||||
public async delete() {
|
||||
var request: Observable<IRequestEngineResult>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue