Fix shelf

This commit is contained in:
aditya.chandel
2025-01-16 00:18:20 -07:00
parent 532246b18b
commit 50dd24e9f2
5 changed files with 5 additions and 9 deletions
@@ -72,9 +72,6 @@ export class SettingsComponent implements OnInit {
populateSettings(settings: AppSettings): void {
if (settings.pdf) {
const pdfSettings = settings.pdf;
console.log(pdfSettings)
this.selectedSpread = this.spreads.find(s => s.key === pdfSettings.spread)?.key;
this.selectedZoom = this.zooms.find(z => z.key === pdfSettings.zoom)?.key;
this.showSidebar = pdfSettings.sidebar;
@@ -83,8 +80,6 @@ export class SettingsComponent implements OnInit {
if (settings.epub) {
const epubSettings = settings.epub;
this.selectedTheme = this.themes.find(t => t.key === epubSettings.theme)?.key;
console.log(epubSettings.fontSize)
this.fontSize = parseInt(epubSettings.fontSize, 10);
this.selectedFont = this.fonts.find(f => f.key === epubSettings.font)?.key;
}
@@ -36,7 +36,7 @@ export class AppSettingsService {
this.http.put(this.apiUrl, null, { params }).subscribe({
next: () => {
console.log('Setting saved successfully');
},
error: (error) => {
console.error('Error saving setting:', error);