mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Fixed the issue where we couldn't request TV shows from the discover page
This commit is contained in:
parent
3aba6516e0
commit
cb3916f773
4 changed files with 8 additions and 2 deletions
|
@ -30,7 +30,7 @@ export class DiscoverCardComponent implements OnInit {
|
||||||
public ngOnInit() {
|
public ngOnInit() {
|
||||||
if (this.result.type == RequestType.tvShow) {
|
if (this.result.type == RequestType.tvShow) {
|
||||||
this.fullyLoaded = true;
|
this.fullyLoaded = true;
|
||||||
// this.getExtraTvInfo();
|
this.getExtraTvInfo();
|
||||||
}
|
}
|
||||||
if (this.result.type == RequestType.movie) {
|
if (this.result.type == RequestType.movie) {
|
||||||
this.getExtraMovieInfo();
|
this.getExtraMovieInfo();
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { MatDialog } from "@angular/material/dialog";
|
||||||
import { DiscoverGridComponent } from "./grid/discover-grid.component";
|
import { DiscoverGridComponent } from "./grid/discover-grid.component";
|
||||||
import { DiscoverSearchResultsComponent } from "./search-results/search-results.component";
|
import { DiscoverSearchResultsComponent } from "./search-results/search-results.component";
|
||||||
import { CarouselListComponent } from "./carousel-list/carousel-list.component";
|
import { CarouselListComponent } from "./carousel-list/carousel-list.component";
|
||||||
|
import { RequestServiceV2 } from "../../services/requestV2.service";
|
||||||
|
|
||||||
|
|
||||||
export const components: any[] = [
|
export const components: any[] = [
|
||||||
|
@ -27,6 +28,7 @@ export const providers: any[] = [
|
||||||
SearchService,
|
SearchService,
|
||||||
MatDialog,
|
MatDialog,
|
||||||
RequestService,
|
RequestService,
|
||||||
|
RequestServiceV2,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</th>
|
</th>
|
||||||
<td mat-cell *matCellDef="let row">
|
<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"
|
(change)="$event ? selection.toggle(row) : null"
|
||||||
[checked]="selection.isSelected(row)">
|
[checked]="selection.isSelected(row)">
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
|
|
|
@ -95,6 +95,10 @@ class MoviesTab extends MediaBaseTab {
|
||||||
get approveFabButton(): Cypress.Chainable<any> {
|
get approveFabButton(): Cypress.Chainable<any> {
|
||||||
return cy.get('#approveFabButton');
|
return cy.get('#approveFabButton');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getRowCheckbox(rowId: number): Cypress.Chainable<any> {
|
||||||
|
return cy.get('#adminMasterCheckbox' + rowId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class RequestsPage extends BasePage {
|
class RequestsPage extends BasePage {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue