Skip to content

Commit

Permalink
Removed the message from the share modal if the file is not password …
Browse files Browse the repository at this point in the history
…protected
  • Loading branch information
Rostislav Raykov committed Jan 23, 2025
1 parent f2c3be0 commit 331ce80
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/resources/templates/fileView.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,14 @@ <h1 class="modal-title fs-5" id="shareModalLabel">Share File</h1>
<button aria-label="Close" class="btn-close" data-bs-dismiss="modal" type="button"></button>
</div>
<div class="modal-body">
<p>By default, this link requires will a password to access the file if the file is password-protected
or if the app password is enabled. You can generate an unrestricted link valid for a specific number
of days, usable once.</p>
<div th:if="${file.passwordHash != null || isAppPasswordSet}">
<p>
By default, this link requires a password to access the file if the file is password-protected
or if the app password is enabled.
<br>
You can generate an unrestricted link valid for a specific number of days, usable once.
</p>
</div>

<div class="input-group mb-3">
<input class="form-control" id="shareLink" placeholder="Generated link will appear here" readonly type="text"
Expand Down

0 comments on commit 331ce80

Please sign in to comment.