mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-08-05 08:39:59 -04:00
Release Shakeout Part 2 (#1267)
* Fixed manga reader and removed debug code * Removed some console.logs
This commit is contained in:
parent
92010379f1
commit
81082508f2
@ -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):
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user