Replaced all the mat-icons with fontawesome

pull/4113/head v4.0.1260
tidusjar 3 years ago
parent bb384bff68
commit 3aba6516e0

@ -5,7 +5,9 @@
{{'Issues.Title' | translate}} {{'Issues.Title' | translate}}
</mat-panel-title> </mat-panel-title>
<mat-panel-description> <mat-panel-description>
<span *ngIf="isOutstanding">{{issuesCount}} </span><span><mat-icon *ngIf="isOutstanding" matTooltip="{{'Issues.Outstanding' | translate}}">error_outline</mat-icon></span> <span *ngIf="isOutstanding">{{issuesCount}} </span><span>
<i *ngIf="isOutstanding" matTooltip="{{'Issues.Outstanding' | translate}}" class="fas fa-exclamation-triangle"></i>
</span>
<span *ngIf="!isOutstanding">{{issuesCount}}</span> <span *ngIf="!isOutstanding">{{issuesCount}}</span>
</mat-panel-description> </mat-panel-description>
</mat-expansion-panel-header> </mat-expansion-panel-header>

@ -31,13 +31,13 @@
</button> </button>
<mat-menu #menu="matMenu"> <mat-menu #menu="matMenu">
<button mat-menu-item (click)="openRequestOnBehalf()" [disabled]="!canRequestOnBehalf"> <button mat-menu-item (click)="openRequestOnBehalf()" [disabled]="!canRequestOnBehalf">
<mat-icon>supervised_user_circle</mat-icon> <i class="fas fa-user-friends icon-spacing"></i>
<span>{{'MediaDetails.RequestOnBehalf' | translate}}</span> <span> {{'MediaDetails.RequestOnBehalf' | translate}}</span>
</button> </button>
<button mat-menu-item [disabled]="!canShowAdvanced" (click)="openAdvancedOptions()"> <button mat-menu-item [disabled]="!canShowAdvanced" (click)="openAdvancedOptions()">
<mat-icon>movie_filter</mat-icon> <i class="fas fa-ticket-alt icon-spacing"></i>
<span *ngIf="type === RequestType.movie">{{'MediaDetails.RadarrConfiguration' | translate}}</span> <span *ngIf="type === RequestType.movie"> {{ 'MediaDetails.RadarrConfiguration' | translate}}</span>
<span *ngIf="type === RequestType.tvShow">{{'MediaDetails.SonarrConfiguration' | translate}}</span> <span *ngIf="type === RequestType.tvShow"> {{ 'MediaDetails.SonarrConfiguration' | translate}}</span>
</button> </button>
</mat-menu> </mat-menu>
</div> </div>

@ -75,7 +75,7 @@
<button *ngIf="!tv.fullyAvailable && requestable" mat-fab color="accent" id="addFabBtn" class="floating-fab" [matMenuTriggerFor]="aboveMenu"> <button *ngIf="!tv.fullyAvailable && requestable" mat-fab color="accent" id="addFabBtn" class="floating-fab" [matMenuTriggerFor]="aboveMenu">
<mat-icon>add</mat-icon></button> <i class="fas fa-plus fa-lg"></i>
<mat-menu #aboveMenu="matMenu" yPosition="above"> <mat-menu #aboveMenu="matMenu" yPosition="above">
<button id="requestAll" mat-menu-item (click)="requestAllSeasons()">{{'Search.TvShows.AllSeasons' | translate }}</button> <button id="requestAll" mat-menu-item (click)="requestAllSeasons()">{{'Search.TvShows.AllSeasons' | translate }}</button>

@ -16,7 +16,7 @@
<mat-label>Api Key</mat-label> <mat-label>Api Key</mat-label>
<input matInput id="ApiKey" name="ApiKey" formControlName="apiKey" readonly="readonly"> <input matInput id="ApiKey" name="ApiKey" formControlName="apiKey" readonly="readonly">
<button type="button" matSuffix (click)="refreshApiKey()" style="display:inline-block;"> <button type="button" matSuffix (click)="refreshApiKey()" style="display:inline-block;">
<mat-icon class="fas fa-sync"></mat-icon> <i class="fas fa-sync-alt fa-lg"></i>
</button> </button>
</mat-form-field> </mat-form-field>

@ -52,7 +52,10 @@ export class PlexComponent implements OnInit, OnDestroy {
} }
public selectServer(selectedServer: IPlexServerResponse, server: IPlexServer) { public selectServer(selectedServer: IPlexServerResponse, server: IPlexServer) {
server.ip = selectedServer.localAddresses.split(",")[0]; var splitServers = selectedServer.localAddresses.split(",");
if (splitServers.length > 1) {
server.ip = splitServers[splitServers.length - 1];
}
server.name = selectedServer.name; server.name = selectedServer.name;
server.machineIdentifier = selectedServer.machineIdentifier; server.machineIdentifier = selectedServer.machineIdentifier;
server.plexAuthToken = selectedServer.accessToken; server.plexAuthToken = selectedServer.accessToken;

@ -30,7 +30,7 @@
<mat-chip *ngFor="let key of excludedKeywords" [selectable]="false" [removable]="true" <mat-chip *ngFor="let key of excludedKeywords" [selectable]="false" [removable]="true"
(removed)="remove(key)"> (removed)="remove(key)">
{{key.name}} {{key.name}}
<mat-icon matChipRemove>cancel</mat-icon> <i matChipRemove class="fas fa-times fa-lg"></i>
</mat-chip> </mat-chip>
</mat-chip-list> </mat-chip-list>

@ -1,6 +1,6 @@
<div *ngIf="remaining?.hasLimit"> <div *ngIf="remaining?.hasLimit">
<small id="remainingRequests" class="text-center"> <small id="remainingRequests" class="text-center">
<mat-icon [matTooltip]="getTooltipContent()">{{matIcon}}</mat-icon> {{'Requests.Remaining.Quota' | translate: {remaining: remaining.remaining, total: remaining.limit} }} <i class="{{matIcon}}" [matTooltip]="getTooltipContent()"></i> {{'Requests.Remaining.Quota' | translate: {remaining: remaining.remaining, total: remaining.limit} }}
</small> </small>
</div> </div>

@ -53,17 +53,17 @@ export class RemainingRequestsComponent implements OnInit {
switch (this.type) { switch (this.type) {
case RequestType.movie: case RequestType.movie:
this.requestService.getRemainingMovieRequests().subscribe(callback); this.requestService.getRemainingMovieRequests().subscribe(callback);
this.matIcon = "movie"; this.matIcon = "fas fa-film";
break; break;
case RequestType.tvShow: case RequestType.tvShow:
this.requestService.getRemainingTvRequests().subscribe(callback); this.requestService.getRemainingTvRequests().subscribe(callback);
this.matIcon = "tv"; this.matIcon = "fas fa-tv";
break; break;
case RequestType.album: case RequestType.album:
this.requestService.getRemainingMusicRequests().subscribe(callback); this.requestService.getRemainingMusicRequests().subscribe(callback);
this.matIcon = "library_music"; this.matIcon = "fas fa-music";
break; break;
} }

@ -138,3 +138,7 @@ table {
::ng-deep .mat-form-field.mat-focused .mat-form-field-label { ::ng-deep .mat-form-field.mat-focused .mat-form-field-label {
color: $accent; color: $accent;
} }
.icon-spacing {
margin-right: 1%;
}

@ -233,45 +233,6 @@
"subscribed": false, "subscribed": false,
"showSubscribe": true "showSubscribe": true
}, },
{
"adult": false,
"backdropPath": "/vKzbIoHhk1z9DWYi8kyFe9Gg0HF.jpg",
"genreIds": [],
"originalLanguage": "en",
"originalTitle": "Coming 2 America",
"overview": "Prince Akeem Joffer is set to become King of Zamunda when he discovers he has a son he never knew about in America a street savvy Queens native named Lavelle. Honoring his royal father's dying wish to groom this son as the crown prince, Akeem and Semmi set off to America once again.",
"popularity": 2243.493896484375,
"posterPath": "/nWBPLkqNApY5pgrJFMiI9joSI30.jpg",
"releaseDate": "2021-03-05T00:00:00",
"title": "Coming 2 America",
"video": false,
"voteAverage": 7.099999904632568,
"voteCount": 552,
"alreadyInCp": false,
"trailer": null,
"homepage": null,
"rootPathOverride": 0,
"qualityOverride": 0,
"type": 1,
"releaseDates": null,
"digitalReleaseDate": null,
"id": 484718,
"approved": false,
"denied": null,
"deniedReason": null,
"requested": false,
"requestId": 0,
"available": false,
"plexUrl": null,
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt6802400",
"theTvDbId": null,
"theMovieDbId": "484718",
"subscribed": false,
"showSubscribe": true
},
{ {
"adult": false, "adult": false,
"backdropPath": "/lOSdUkGQmbAl5JQ3QoHqBZUbZhC.jpg", "backdropPath": "/lOSdUkGQmbAl5JQ3QoHqBZUbZhC.jpg",

@ -99,11 +99,11 @@ describe("Movie Details Buttons", () => {
it("Movie Requested, Deny Movie", () => { it("Movie Requested, Deny Movie", () => {
cy.login(); cy.login();
Page.visit("484718"); Page.visit("671");
Page.requestButton.click(); Page.requestButton.click();
cy.verifyNotification( cy.verifyNotification(
"Coming 2 America (2021) has been successfully added" "Harry Potter and the Philosopher's Stone (2001) has been successfully added"
); );
cy.reload(); cy.reload();
Loading…
Cancel
Save