Misc Polishing (#413)
* Ensure that after we assign a role to a user, we show it immediately * Cached libraryType api as that is not going to change in a viewing session. Moved some components around to tighten bundles. * Cleaned up more TODOs * Refactored Configuration to use getter and setters so that the interface is a lot cleaner. Updated HashUtil to use JWT Secret instead of Machine name (as docker machine name is random each boot).
This commit is contained in:
parent
ef5b22b585
commit
b8165b311c
29 changed files with 408 additions and 307 deletions
|
|
@ -42,7 +42,6 @@ export class DirectoryPickerComponent implements OnInit {
|
|||
}
|
||||
|
||||
goBack() {
|
||||
// BUG: When Going back to initial listing, this code gets stuck on first drive
|
||||
this.routeStack.pop();
|
||||
const stackPeek = this.routeStack.peek();
|
||||
if (stackPeek !== undefined) {
|
||||
|
|
@ -53,7 +52,6 @@ export class DirectoryPickerComponent implements OnInit {
|
|||
this.currentRoot = '';
|
||||
this.loadChildren(this.currentRoot);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
loadChildren(path: string) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export class EditRbsModalComponent implements OnInit {
|
|||
}
|
||||
|
||||
close() {
|
||||
this.modal.close(false);
|
||||
this.modal.close(undefined);
|
||||
}
|
||||
|
||||
save() {
|
||||
|
|
@ -42,8 +42,10 @@ export class EditRbsModalComponent implements OnInit {
|
|||
this.memberService.updateMemberRoles(this.member?.username, selectedRoles).subscribe(() => {
|
||||
if (this.member) {
|
||||
this.member.roles = selectedRoles;
|
||||
this.modal.close(this.member);
|
||||
return;
|
||||
}
|
||||
this.modal.close(true);
|
||||
this.modal.close(undefined);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export class ManageLibraryComponent implements OnInit, OnDestroy {
|
|||
this.libraryService.delete(library.id).pipe(take(1)).subscribe(() => {
|
||||
this.deletionInProgress = false;
|
||||
this.getLibraries();
|
||||
this.toastr.success('Library has been removed'); // BUG: This is not causing a refresh
|
||||
this.toastr.success('Library has been removed');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,18 +25,14 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="stat-collection">Allow Anonymous Usage Collection</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="statTooltip" role="button" tabindex="0"></i>
|
||||
<ng-template #statTooltip>Send anonymous usage and error information to Kavita's servers. This includes information on your browser, error reporting as well as OS and runtime version. We will use this information to prioritize features and bug fixes. Requires restart to take effect.</ng-template>
|
||||
<span class="sr-only" id="logging-level-port-help">Send anonymous usage and error information to Kavita's servers. This includes information on your browser, error reporting as well as OS and runtime version. We will use this information to prioritize features and bug fixes. Requires restart to take effect.</span>
|
||||
<p class="accent">Send anonymous usage and error information to Kavita's servers. This includes information on your browser, error reporting as well as OS and runtime version. We will use this information to prioritize features and bug fixes. Requires restart to take effect</p>
|
||||
<label for="stat-collection" aria-describedby="collection-info">Allow Anonymous Usage Collection</label>
|
||||
<p class="accent" id="collection-info">Send anonymous usage and error information to Kavita's servers. This includes information on your browser, error reporting as well as OS and runtime version. We will use this information to prioritize features, bug fixes, and preformance tuning. Requires restart to take effect.</p>
|
||||
<div class="form-check">
|
||||
<input id="stat-collection" type="checkbox" aria-label="Admin" class="form-check-input" formControlName="allowStatCollection">
|
||||
<label for="stat-collection" class="form-check-label">Send Data</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h4>Reoccuring Tasks</h4>
|
||||
<div class="form-group">
|
||||
<label for="settings-tasks-scan">Library Scan</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="taskScanTooltip" role="button" tabindex="0"></i>
|
||||
|
|
|
|||
|
|
@ -82,6 +82,11 @@ export class ManageUsersComponent implements OnInit {
|
|||
openEditRole(member: Member) {
|
||||
const modalRef = this.modalService.open(EditRbsModalComponent);
|
||||
modalRef.componentInstance.member = member;
|
||||
modalRef.closed.subscribe((updatedMember: Member) => {
|
||||
if (updatedMember !== undefined) {
|
||||
member = updatedMember;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
updatePassword(member: Member) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue