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) {
const routeId = this.route.snapshot.paramMap.get('libraryId');
if (routeId === null) {
console.log('Redirecting due to not seeing libraryId in route');
this.router.navigateByUrl('/libraries');
return;
}
@ -146,10 +145,8 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {
if (library === undefined) {
lib = {id: this.libraryId, name: this.libraryName};
}
console.log('lib: ', lib);
switch (action) {
case(Action.ScanLibrary):
console.log('action handler');
this.actionService.scanLibrary(lib);
break;
case(Action.RefreshMetadata):

View File

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

View File

@ -297,7 +297,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
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 (this.isCoverImage()) {
if (this.isCoverImage() || this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.WIDTH) {
return this.WindowHeight;
}
return this.image?.nativeElement.height + 'px';

View File

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

View File

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