mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 03:28:28 -07:00
fix(issues): 🐛 Added the issue category to the issue 'cards' #4403
This commit is contained in:
parent
02250000c0
commit
a3739f375c
3 changed files with 13 additions and 16 deletions
|
@ -2,6 +2,7 @@
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title>{{issue.subject}}</mat-card-title>
|
<mat-card-title>{{issue.subject}}</mat-card-title>
|
||||||
<mat-card-subtitle>{{'Issues.UserOnDate' | translate: { user: issue.userReported?.userName, date: issue.createdDate | amLocal | amUserLocale | amDateFormat: 'LL' } }}</mat-card-subtitle>
|
<mat-card-subtitle>{{'Issues.UserOnDate' | translate: { user: issue.userReported?.userName, date: issue.createdDate | amLocal | amUserLocale | amDateFormat: 'LL' } }}</mat-card-subtitle>
|
||||||
|
<mat-card-subtitle>{{issue.issueCategory.value}}</mat-card-subtitle>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<p>
|
<p>
|
||||||
|
@ -10,8 +11,8 @@
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button mat-raised-button (click)="openChat(issue)" color="accent"><i class="far fa-comments"></i> {{'Issues.Chat' | translate }}</button>
|
<button mat-raised-button (click)="openChat(issue)" color="accent"><i class="far fa-comments"></i> {{'Issues.Chat' | translate }}</button>
|
||||||
<div *ngIf="isAdmin && settings;then content else empty">here is ignored</div>
|
<div *ngIf="isAdmin && settings;then content else empty"></div>
|
||||||
<ng-template #content>
|
<ng-template #content>
|
||||||
<button mat-raised-button color="accent"
|
<button mat-raised-button color="accent"
|
||||||
*ngIf="issue.status === IssueStatus.Pending && settings.enableInProgress"
|
*ngIf="issue.status === IssueStatus.Pending && settings.enableInProgress"
|
||||||
(click)="inProgress(issue)">{{'Issues.MarkInProgress' | translate }}</button>
|
(click)="inProgress(issue)">{{'Issues.MarkInProgress' | translate }}</button>
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
@import "~styles/variables.scss";
|
@import "~styles/variables.scss";
|
||||||
|
|
||||||
::ng-deep .mat-card {
|
|
||||||
background: $ombi-background-primary-accent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-spacing {
|
.top-spacing {
|
||||||
margin-top:2%;
|
margin-top:2%;
|
||||||
}
|
}
|
|
@ -1,13 +1,13 @@
|
||||||
import { Component, Inject, OnInit, ViewEncapsulation } from "@angular/core";
|
|
||||||
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
||||||
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from "@angular/router";
|
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from "@angular/router";
|
||||||
import { TranslateService } from "@ngx-translate/core";
|
import { Component, Inject, OnInit, ViewEncapsulation } from "@angular/core";
|
||||||
import { AuthService } from "../../../auth/auth.service";
|
import { IIssueSettings, IIssues, IIssuesSummary, IssueStatus, RequestType } from "../../../interfaces";
|
||||||
import { IIssues, IIssueSettings, IIssuesSummary, IssueStatus, RequestType } from "../../../interfaces";
|
|
||||||
import { IssuesService, NotificationService, SettingsService } from "../../../services";
|
import { IssuesService, NotificationService, SettingsService } from "../../../services";
|
||||||
import { IssuesV2Service } from "../../../services/issuesv2.service";
|
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { IssueChatComponent } from "../issue-chat/issue-chat.component";
|
|
||||||
|
|
||||||
|
import { AuthService } from "../../../auth/auth.service";
|
||||||
|
import { IssueChatComponent } from "../issue-chat/issue-chat.component";
|
||||||
|
import { IssuesV2Service } from "../../../services/issuesv2.service";
|
||||||
|
import { TranslateService } from "@ngx-translate/core";
|
||||||
|
|
||||||
export interface IssuesDetailsGroupData {
|
export interface IssuesDetailsGroupData {
|
||||||
issues: IIssues[];
|
issues: IIssues[];
|
||||||
|
@ -77,15 +77,15 @@ export class IssuesDetailsComponent implements OnInit {
|
||||||
const firstIssue = this.details.issues[0];
|
const firstIssue = this.details.issues[0];
|
||||||
switch(firstIssue.requestType) {
|
switch(firstIssue.requestType) {
|
||||||
case RequestType.movie:
|
case RequestType.movie:
|
||||||
this.router.navigate(['/details/movie/', firstIssue.providerId]);
|
this.router.navigate(['/details/movie/', this.providerId]);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case RequestType.album:
|
case RequestType.album:
|
||||||
this.router.navigate(['/details/artist/', firstIssue.providerId]);
|
this.router.navigate(['/details/artist/', this.providerId]);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case RequestType.tvShow:
|
case RequestType.tvShow:
|
||||||
this.router.navigate(['/details/tv/', firstIssue.providerId]);
|
this.router.navigate(['/details/tv/', this.providerId]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue