Skip to content

Commit 331ce80

Browse files
author
Rostislav Raykov
committed
Removed the message from the share modal if the file is not password protected
1 parent f2c3be0 commit 331ce80

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/resources/templates/fileView.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,14 @@ <h1 class="modal-title fs-5" id="shareModalLabel">Share File</h1>
170170
<button aria-label="Close" class="btn-close" data-bs-dismiss="modal" type="button"></button>
171171
</div>
172172
<div class="modal-body">
173-
<p>By default, this link requires will a password to access the file if the file is password-protected
174-
or if the app password is enabled. You can generate an unrestricted link valid for a specific number
175-
of days, usable once.</p>
173+
<div th:if="${file.passwordHash != null || isAppPasswordSet}">
174+
<p>
175+
By default, this link requires a password to access the file if the file is password-protected
176+
or if the app password is enabled.
177+
<br>
178+
You can generate an unrestricted link valid for a specific number of days, usable once.
179+
</p>
180+
</div>
176181

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

0 commit comments

Comments
 (0)