Fixed the issue where we couldn't request TV shows from the discover page

pull/4113/head v4.0.1261
tidusjar 4 years ago
parent 3aba6516e0
commit cb3916f773

@ -30,7 +30,7 @@ export class DiscoverCardComponent implements OnInit {
public ngOnInit() {
if (this.result.type == RequestType.tvShow) {
this.fullyLoaded = true;
// this.getExtraTvInfo();
this.getExtraTvInfo();
}
if (this.result.type == RequestType.movie) {
this.getExtraMovieInfo();

@ -10,6 +10,7 @@ import { MatDialog } from "@angular/material/dialog";
import { DiscoverGridComponent } from "./grid/discover-grid.component";
import { DiscoverSearchResultsComponent } from "./search-results/search-results.component";
import { CarouselListComponent } from "./carousel-list/carousel-list.component";
import { RequestServiceV2 } from "../../services/requestV2.service";
export const components: any[] = [
@ -27,6 +28,7 @@ export const providers: any[] = [
SearchService,
MatDialog,
RequestService,
RequestServiceV2,
];
export const routes: Routes = [

@ -38,7 +38,7 @@
</mat-checkbox>
</th>
<td mat-cell *matCellDef="let row">
<mat-checkbox id="adminMasterCheckbox" (click)="$event.stopPropagation()"
<mat-checkbox id="adminMasterCheckbox{{row.id}}" (click)="$event.stopPropagation()"
(change)="$event ? selection.toggle(row) : null"
[checked]="selection.isSelected(row)">
</mat-checkbox>

@ -95,6 +95,10 @@ class MoviesTab extends MediaBaseTab {
get approveFabButton(): Cypress.Chainable<any> {
return cy.get('#approveFabButton');
}
getRowCheckbox(rowId: number): Cypress.Chainable<any> {
return cy.get('#adminMasterCheckbox' + rowId);
}
}
class RequestsPage extends BasePage {

Loading…
Cancel
Save