Release Shakeout Part 2 (#1267)

* Fixed manga reader and removed debug code

* Removed some console.logs
This commit is contained in:
Joseph Milazzo 2022-05-20 21:05:09 -05:00 committed by GitHub
parent 92010379f1
commit 81082508f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 9 deletions

View File

@ -89,7 +89,6 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {
private utilityService: UtilityService, public navService: NavService, private filterUtilityService: FilterUtilitiesService) { private utilityService: UtilityService, public navService: NavService, private filterUtilityService: FilterUtilitiesService) {
const routeId = this.route.snapshot.paramMap.get('libraryId'); const routeId = this.route.snapshot.paramMap.get('libraryId');
if (routeId === null) { if (routeId === null) {
console.log('Redirecting due to not seeing libraryId in route');
this.router.navigateByUrl('/libraries'); this.router.navigateByUrl('/libraries');
return; return;
} }
@ -146,10 +145,8 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {
if (library === undefined) { if (library === undefined) {
lib = {id: this.libraryId, name: this.libraryName}; lib = {id: this.libraryId, name: this.libraryName};
} }
console.log('lib: ', lib);
switch (action) { switch (action) {
case(Action.ScanLibrary): case(Action.ScanLibrary):
console.log('action handler');
this.actionService.scanLibrary(lib); this.actionService.scanLibrary(lib);
break; break;
case(Action.RefreshMetadata): case(Action.RefreshMetadata):

View File

@ -248,8 +248,8 @@ img {
width: 100%; width: 100%;
} }
//$pagination-bg: rgba(0, 0, 0, 0); $pagination-bg: rgba(0, 0, 0, 0);
$pagination-bg: rgba(0, 0, 255, 0.4); //$pagination-bg: rgba(0, 0, 255, 0.4);
.pagination-area { .pagination-area {
cursor: pointer; cursor: pointer;

View File

@ -297,7 +297,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
get ImageHeight() { get ImageHeight() {
// If we are a cover image and implied fit to screen, then we need to take screen height rather than image height // If we are a cover image and implied fit to screen, then we need to take screen height rather than image height
if (this.isCoverImage()) { if (this.isCoverImage() || this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.WIDTH) {
return this.WindowHeight; return this.WindowHeight;
} }
return this.image?.nativeElement.height + 'px'; return this.image?.nativeElement.height + 'px';

View File

@ -601,12 +601,10 @@ export class MetadataFilterComponent implements OnInit, OnDestroy {
} }
toggleSelected() { toggleSelected() {
//this.filteringCollapsed = !this.filteringCollapsed;
this.toggleService.toggle(); this.toggleService.toggle();
} }
setToggle(event: any) { setToggle(event: any) {
console.log('set toggle', event);
this.toggleService.set(!this.filteringCollapsed); this.toggleService.set(!this.filteringCollapsed);
} }

View File

@ -63,7 +63,6 @@ export class SideNavComponent implements OnInit, OnDestroy {
if (this.utilityService.getActiveBreakpoint() < Breakpoint.Tablet) { if (this.utilityService.getActiveBreakpoint() < Breakpoint.Tablet) {
// collapse side nav // collapse side nav
this.navService.sideNavCollapsed$.pipe(take(1)).subscribe(collapsed => { this.navService.sideNavCollapsed$.pipe(take(1)).subscribe(collapsed => {
console.log('Side nav collapsed: ', collapsed);
if (!collapsed) { if (!collapsed) {
this.navService.toggleSideNav(); this.navService.toggleSideNav();
} }