Implement OPDS v2 to return user-specific book feeds
This commit is contained in:
committed by
Aditya Chandel
parent
4cff107a67
commit
443dcad59a
+5
@@ -91,6 +91,11 @@
|
||||
<label>Delete Book</label>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2">
|
||||
<p-checkbox formControlName="permissionAccessOpds" [binary]="true"></p-checkbox>
|
||||
<label>Access OPDS</label>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2">
|
||||
<p-checkbox formControlName="permissionSyncKoreader" [binary]="true"></p-checkbox>
|
||||
<label>KOReader Sync</label>
|
||||
|
||||
+1
@@ -50,6 +50,7 @@ export class CreateUserDialogComponent implements OnInit {
|
||||
permissionManipulateLibrary: [false],
|
||||
permissionEmailBook: [false],
|
||||
permissionDeleteBook: [false],
|
||||
permissionAccessOpds: [false],
|
||||
permissionSyncKoreader: [false],
|
||||
permissionSyncKobo: [false],
|
||||
permissionAdmin: [false],
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<th style="width: 80px;">Manage Library</th>
|
||||
<th style="width: 80px;">Email Books</th>
|
||||
<th style="width: 80px;">Delete Books</th>
|
||||
<th style="width: 80px;">Access OPDS</th>
|
||||
<th style="width: 80px;">KOReader Sync</th>
|
||||
<th style="width: 80px;">Kobo Sync</th>
|
||||
<th style="width: 120px;">Edit</th>
|
||||
@@ -127,6 +128,14 @@
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canDeleteBook" disabled></p-checkbox>
|
||||
}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if (user.isEditing) {
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canAccessOpds"></p-checkbox>
|
||||
}
|
||||
@if (!user.isEditing) {
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canAccessOpds" disabled></p-checkbox>
|
||||
}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if (user.isEditing) {
|
||||
<p-checkbox [binary]="true" [(ngModel)]="user.permissions.canSyncKoReader"></p-checkbox>
|
||||
|
||||
@@ -107,6 +107,7 @@ export interface User {
|
||||
canManipulateLibrary: boolean;
|
||||
canSyncKoReader: boolean;
|
||||
canSyncKobo: boolean;
|
||||
canAccessOpds: boolean;
|
||||
};
|
||||
userSettings: UserSettings;
|
||||
provisioningMethod?: 'LOCAL' | 'OIDC' | 'REMOTE';
|
||||
|
||||
Reference in New Issue
Block a user