From 6faf8b85d6192a18f217a38be219b15d90c63b6d Mon Sep 17 00:00:00 2001
From: Louis Chemineau <louis@chmn.me>
Date: Thu, 27 Apr 2023 15:35:22 +0200
Subject: Do not allow to toggle between password and text in sharing

This does not makes sense as we do not have the clear text value.

Signed-off-by: Louis Chemineau <louis@chmn.me>
---
 apps/files_sharing/src/components/SharingEntryLink.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')

diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index e45690ba2a0..bf0e94f35c1 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -161,6 +161,7 @@
 						class="share-link-password"
 						:class="{ error: errors.password}"
 						:disabled="saving"
+						:show-trailing-button="hasUnsavedPassword"
 						:required="config.enforcePasswordForPublicLink"
 						:value="hasUnsavedPassword ? share.newPassword : '***************'"
 						icon="icon-password"
-- 
cgit v1.2.3

