From 8c31cc47b0b0844df13c06f97b81d161300cc66a Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 29 Oct 2023 08:17:24 +0100 Subject: [PATCH] web UIs: fix dismissable alerts alerts can now be shown again after the user dismissal Signed-off-by: Nicola Murino --- internal/httpd/webclient.go | 2 +- templates/webadmin/admins.html | 9 +++++++-- templates/webadmin/connections.html | 9 +++++++-- templates/webadmin/defender.html | 9 +++++++-- templates/webadmin/eventactions.html | 9 +++++++-- templates/webadmin/eventrules.html | 9 +++++++-- templates/webadmin/events.html | 9 +++++++-- templates/webadmin/folders.html | 9 +++++++-- templates/webadmin/groups.html | 9 +++++++-- templates/webadmin/iplists.html | 9 +++++++-- templates/webadmin/mfa.html | 18 ++++++++++++++---- templates/webadmin/roles.html | 9 +++++++-- templates/webadmin/users.html | 9 +++++++-- templates/webclient/editfile.html | 9 +++++++-- templates/webclient/mfa.html | 18 ++++++++++++++---- templates/webclient/sharefiles.html | 9 +++++++-- templates/webclient/shares.html | 9 +++++++-- 17 files changed, 127 insertions(+), 37 deletions(-) diff --git a/internal/httpd/webclient.go b/internal/httpd/webclient.go index 1208a4a6..b7c0f301 100644 --- a/internal/httpd/webclient.go +++ b/internal/httpd/webclient.go @@ -1231,7 +1231,7 @@ func (s *httpdServer) handleClientEditFile(w http.ResponseWriter, r *http.Reques return } - s.renderEditFilePage(w, r, name, b.String(), util.Contains(user.Filters.WebClient, sdk.WebClientWriteDisabled)) + s.renderEditFilePage(w, r, name, b.String(), !user.CanAddFilesFromWeb(path.Dir(name))) } func (s *httpdServer) handleClientAddShareGet(w http.ResponseWriter, r *http.Request) { diff --git a/templates/webadmin/admins.html b/templates/webadmin/admins.html index 85d0094d..f1f033bc 100644 --- a/templates/webadmin/admins.html +++ b/templates/webadmin/admins.html @@ -28,12 +28,17 @@ along with this program. If not, see . {{define "page_body"}} -