From 92aa89263b49e484e352c0a2c26d4f650945828d Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Fri, 3 May 2024 18:38:13 +0200 Subject: [PATCH] WebClient: hide submit button in profile page if no change is allowed Signed-off-by: Nicola Murino --- templates/webclient/profile.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/webclient/profile.html b/templates/webclient/profile.html index 2f0f6ab3..1db041eb 100644 --- a/templates/webclient/profile.html +++ b/templates/webclient/profile.html @@ -185,6 +185,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). {{- end}} + {{if .CanSubmit}}
+ {{- end}} @@ -218,11 +220,13 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). initRepeaterItems(); //{{- end}} + //{{if .CanSubmit}} $("#page_form").submit(function (event) { let submitButton = document.querySelector('#form_submit'); submitButton.setAttribute('data-kt-indicator', 'on'); submitButton.disabled = true; }); + //{{- end}} }); {{- end}} \ No newline at end of file