+
+
+
+
No results found
diff --git a/UI/Web/src/app/nav-header/nav-header.component.ts b/UI/Web/src/app/nav-header/nav-header.component.ts
index 4a8e459e1..ebf7318a9 100644
--- a/UI/Web/src/app/nav-header/nav-header.component.ts
+++ b/UI/Web/src/app/nav-header/nav-header.component.ts
@@ -3,8 +3,8 @@ import { Component, HostListener, Inject, OnDestroy, OnInit, ViewChild } from '@
import { Router } from '@angular/router';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
-import { isTemplateSpan } from 'typescript';
import { ScrollService } from '../scroll.service';
+import { CollectionTag } from '../_models/collection-tag';
import { PersonRole } from '../_models/person';
import { SearchResult } from '../_models/search-result';
import { SearchResultGroup } from '../_models/search/search-result-group';
@@ -104,11 +104,13 @@ export class NavHeaderComponent implements OnInit, OnDestroy {
let params: any = {};
params[queryParamName] = filter;
params['page'] = 1;
+ this.clearSearch();
this.router.navigate(['all-series'], {queryParams: params});
}
goToPerson(role: PersonRole, filter: any) {
// TODO: Move this to utility service
+ this.clearSearch();
switch(role) {
case PersonRole.Artist:
this.goTo('artist', filter);
@@ -147,19 +149,24 @@ export class NavHeaderComponent implements OnInit, OnDestroy {
}
clearSearch() {
+ this.searchViewRef.clear();
+ this.searchTerm = '';
this.searchResults = new SearchResultGroup();
}
- clickSearchResult(item: SearchResult) {
- console.log('Click occured');
+ clickSeriesSearchResult(item: SearchResult) {
+ this.clearSearch();
const libraryId = item.libraryId;
const seriesId = item.seriesId;
- this.searchViewRef.clear();
- this.searchResults.reset();
- this.searchTerm = '';
this.router.navigate(['library', libraryId, 'series', seriesId]);
}
+ clickCollectionSearchResult(item: CollectionTag) {
+ this.clearSearch();
+ this.router.navigate(['collections', item.id]);
+ }
+
+
scrollToTop() {
window.scroll({
top: 0,
@@ -168,7 +175,6 @@ export class NavHeaderComponent implements OnInit, OnDestroy {
}
focusUpdate(searchFocused: boolean) {
- console.log('search has focus', searchFocused);
this.searchFocused = searchFocused
return searchFocused;
}
diff --git a/UI/Web/src/app/person-role.pipe.ts b/UI/Web/src/app/person-role.pipe.ts
index 69190fcf6..9559e4ad6 100644
--- a/UI/Web/src/app/person-role.pipe.ts
+++ b/UI/Web/src/app/person-role.pipe.ts
@@ -11,7 +11,7 @@ export class PersonRolePipe implements PipeTransform {
case PersonRole.Artist: return 'Artist';
case PersonRole.Character: return 'Character';
case PersonRole.Colorist: return 'Colorist';
- case PersonRole.CoverArtist: return 'CoverArtist';
+ case PersonRole.CoverArtist: return 'Cover Artist';
case PersonRole.Editor: return 'Editor';
case PersonRole.Inker: return 'Inker';
case PersonRole.Letterer: return 'Letterer';
diff --git a/UI/Web/src/app/typeahead/typeahead-settings.ts b/UI/Web/src/app/typeahead/typeahead-settings.ts
index 9fc3b28e8..7e531bf84 100644
--- a/UI/Web/src/app/typeahead/typeahead-settings.ts
+++ b/UI/Web/src/app/typeahead/typeahead-settings.ts
@@ -22,7 +22,7 @@ export class TypeaheadSettings
{
*/
savedData!: T[] | T;
/**
- * Function to compare the elements. Should return all elements that fit the matching criteria.
+ * Function to compare the elements. Should return all elements that fit the matching criteria. This is only used with non-Observable based fetchFn, but must be defined for all uses of typeahead (TODO)
*/
compareFn!: ((optionList: T[], filter: string) => T[]);
/**
diff --git a/UI/Web/src/app/user-settings/series-bookmarks/series-bookmarks.component.html b/UI/Web/src/app/user-settings/series-bookmarks/series-bookmarks.component.html
index 334110032..047b14381 100644
--- a/UI/Web/src/app/user-settings/series-bookmarks/series-bookmarks.component.html
+++ b/UI/Web/src/app/user-settings/series-bookmarks/series-bookmarks.component.html
@@ -5,7 +5,7 @@
diff --git a/UI/Web/src/assets/themes/dark.scss b/UI/Web/src/assets/themes/dark.scss
index 8a5545fa8..7f49264ca 100644
--- a/UI/Web/src/assets/themes/dark.scss
+++ b/UI/Web/src/assets/themes/dark.scss
@@ -29,6 +29,8 @@
color: $dark-primary-color;
}
+
+
.accent {
background-color: $dark-form-background !important;
@@ -175,6 +177,10 @@
background-color: $dark-card-color;
color: $dark-text-color;
border-color: $dark-form-border;
+
+ div[role="tabpanel"] {
+ background-color: rgba(52, 60, 70, 0.5); // This is a good accent color
+ }
}
.section-title {
diff --git a/UI/Web/src/theme/_colors.scss b/UI/Web/src/theme/_colors.scss
index 8500c1cce..31fbdede7 100644
--- a/UI/Web/src/theme/_colors.scss
+++ b/UI/Web/src/theme/_colors.scss
@@ -16,6 +16,9 @@ $dark-form-readonly: #434648;
$dark-item-accent-bg: #292d32;
+$white-item-accent-bg: rgba(247, 247, 247, 1);
+
+
//=========================
// Ratings
//=========================
@@ -29,6 +32,7 @@ $rating-empty: #b0c4de;
// --drawer-background-color: #FFF;
// }
+
$theme-colors: (
"primary": $primary-color,
"danger": $error-color