feat(metadata): RanobeDB search improvements (#1804)
Co-authored-by: James Ward <james@notjam.es>
This commit is contained in:
+18
-7
@@ -148,6 +148,24 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="setting-item">
|
||||
<div class="setting-header">
|
||||
<p-toggleswitch [(ngModel)]="ranobedbEnabled"></p-toggleswitch>
|
||||
<span class="setting-label">RanobeDB</span>
|
||||
</div>
|
||||
@if (ranobedbEnabled) {
|
||||
<div class="setting-options">
|
||||
<div class="config-field">
|
||||
<div class="config-label-row">
|
||||
<p-toggleswitch [(ngModel)]="ranobedbPreferRomaji"></p-toggleswitch>
|
||||
<span class="config-label">{{ t('ranobedbPreferRomajiLabel') }}</span>
|
||||
</div>
|
||||
<p class="config-description">{{ t('ranobedbPreferRomajiDesc') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -175,13 +193,6 @@
|
||||
<span class="setting-label">Lubimyczytac</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="setting-item simple-provider">
|
||||
<div class="setting-header">
|
||||
<p-toggleswitch [(ngModel)]="ranobedbEnabled"></p-toggleswitch>
|
||||
<span class="setting-label">Ranobedb</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+6
-1
@@ -96,6 +96,7 @@ export class MetadataProviderSettingsComponent {
|
||||
doubanEnabled: boolean = false;
|
||||
lubimyCzytacEnabled: boolean = false;
|
||||
ranobedbEnabled: boolean = false;
|
||||
ranobedbPreferRomaji: boolean = false;
|
||||
googleApiKey: string = '';
|
||||
|
||||
private appSettingsService = inject(AppSettingsService);
|
||||
@@ -126,6 +127,7 @@ export class MetadataProviderSettingsComponent {
|
||||
this.doubanEnabled = metadataProviderSettings?.douban?.enabled ?? false;
|
||||
this.lubimyCzytacEnabled = metadataProviderSettings?.lubimyczytac?.enabled ?? false;
|
||||
this.ranobedbEnabled = metadataProviderSettings?.ranobedb?.enabled ?? false;
|
||||
this.ranobedbPreferRomaji = metadataProviderSettings?.ranobedb?.preferRomaji ?? false;
|
||||
this.audibleEnabled = metadataProviderSettings?.audible?.enabled ?? false;
|
||||
this.selectedAudibleDomain = metadataProviderSettings?.audible?.domain ?? 'com';
|
||||
}
|
||||
@@ -171,7 +173,10 @@ export class MetadataProviderSettingsComponent {
|
||||
},
|
||||
douban: {enabled: this.doubanEnabled},
|
||||
lubimyczytac: {enabled: this.lubimyCzytacEnabled},
|
||||
ranobedb: {enabled: this.ranobedbEnabled},
|
||||
ranobedb: {
|
||||
enabled: this.ranobedbEnabled,
|
||||
preferRomaji: this.ranobedbPreferRomaji
|
||||
},
|
||||
audible: {
|
||||
enabled: this.audibleEnabled,
|
||||
domain: this.selectedAudibleDomain
|
||||
|
||||
Reference in New Issue
Block a user