fix(requests): 🐛 Fixed an issue where you couldn't approve movies from the request list

pull/4532/head
tidusjar 2 years ago
parent ed0433e374
commit 1611ef9198

@ -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…
Cancel
Save