1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Improve sharing password handling

This commit is contained in:
Patrik J. Braun 2023-01-08 11:49:32 +01:00
parent 40dc25009f
commit c672b9823a
3 changed files with 8 additions and 4 deletions

View File

@ -14,3 +14,4 @@
#shareButton span {
padding-right: 0.3rem;
}

View File

@ -9,7 +9,7 @@
<!-- sharing Modal-->
<div class="modal-header">
<h5 class="modal-title" i18n>Share</h5>
<button type="button" class="btn-close" (click)="hideModal()" data-dismiss="modal" aria-label="Close">
<button type="button" class="btn-close" (click)="hideModal()" data-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="modal-body">
@ -21,7 +21,9 @@
placeholder="link"
class="form-control input-md"
type="text"
[ngModel]="url">
readonly
[disabled]="!shareForm.form.valid"
[ngModel]="shareForm.form.valid ? url: invalidSettings">
</div>
<div class="col-5 col-sm-3">
<button id="copyButton" name="copyButton"
@ -68,14 +70,14 @@
</div>
</div>
<div class="row">
<div class="row" *ngIf="passwordProtection">
<div class="col-4">
<label class="control-label" for="share-password">
<ng-container i18n>Password</ng-container>
*:
</label>
</div>
<div class="col-8" *ngIf="passwordProtection">
<div class="col-8">
<input id="share-password"
class="form-control"
name="share-password"

View File

@ -34,6 +34,7 @@ export class GalleryShareComponent implements OnInit, OnDestroy {
readonly ValidityTypes = ValidityTypes;
modalRef: BsModalRef;
invalidSettings = $localize`Invalid settings`
text = {
Yes: 'Yes',