mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-01-02 10:10:21 -05:00
* Moved libraryType into chapter info * Fixed a bug where you could not reset cover on a series * Patched in relevant changes from another polish branch * Refactored invite user setup to shift the checking for accessibility to the backend and always show the link. This will help with users who have some unique setups in docker. * Refactored invite user to always print the url to setup a new account. * Single page renderer uses canvasImage rather than re-requesting and relying on cache * Fixed a rendering issue where fit to split on single on a cover wouldn't force width scaling just for that image * Fixed a rendering bug with split image functionality * Added title to copy button * Fixed a bug in GetContinuePoint when a chapter is added to an already read volume and a new chapter is added loose leaf. The loose leaf would be prioritized over the volume chapter. Refactored 2 methods from controller into service and unit tested. * Fixed a bug on opening a volume in series detail that had a chapter added to it after the volume (0 chapter) was read would cause a loose leaf chapter to be opened. * Added mark as read/actionables on Files in volume detail modal. Fixed a bug where we were showing the wrong page count in a volume detail modal. * Removed OnDeck page and replaced it with a pre-filtered All-Series. Hooked up the ability to pass read state to the filter via query params. Fixed some spacing on filter post bootstrap update. * Fixed up some poor documentation on FilterDto.
55 lines
2.5 KiB
HTML
55 lines
2.5 KiB
HTML
<div class="modal-header">
|
|
<h4 class="modal-title" id="modal-basic-title">Invite User</h4>
|
|
<button type="button" class="btn-close" aria-label="Close" (click)="close()">
|
|
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>
|
|
Invite a user to your server. Enter their email in and we will send them an email to create an account.
|
|
</p>
|
|
|
|
<form [formGroup]="inviteForm" *ngIf="emailLink === ''">
|
|
<div class="row g-0">
|
|
<div class="mb-3" style="width:100%">
|
|
<label for="email" class="form-label">Email</label>
|
|
<input class="form-control" type="email" id="email" formControlName="email" required>
|
|
<div id="inviteForm-validations" class="invalid-feedback" *ngIf="inviteForm.dirty || inviteForm.touched">
|
|
<div *ngIf="email?.errors?.required">
|
|
This field is required
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row g-0">
|
|
<div class="col-md-6">
|
|
<app-role-selector (selected)="updateRoleSelection($event)" [allowAdmin]="true"></app-role-selector>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<app-library-selector (selected)="updateLibrarySelection($event)"></app-library-selector>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<ng-container *ngIf="emailLink !== ''">
|
|
<h4>User invited</h4>
|
|
<p>You can use the following link below to setup the account for your user or use the copy button. You may need to log out before using the link to register a new user.
|
|
If your server is externallyaccessible, an email will have been sent to the user and the links can be used by them to finish setting up their account.
|
|
</p>
|
|
<a class="email-link" href="{{emailLink}}" target="_blank">Setup user's account</a>
|
|
<app-api-key title="Invite Url" tooltipText="Copy this and paste in a new tab. You may need to log out." [showRefresh]="false" [transform]="makeLink"></app-api-key>
|
|
</ng-container>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" (click)="close()">
|
|
Cancel
|
|
</button>
|
|
<button type="button" class="btn btn-primary" (click)="invite()" [disabled]="isSending || !inviteForm.valid || emailLink !== ''">
|
|
<span *ngIf="isSending" class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
|
<span>{{isSending ? 'Inviting...' : 'Invite'}}</span>
|
|
</button>
|
|
</div>
|