admin UI: allow to control columns visibility and ordering

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-05-22 11:45:49 +02:00
parent 1a33b5bb53
commit f536c64043
26 changed files with 679 additions and 397 deletions

View File

@@ -130,7 +130,6 @@ type basePage struct {
CSRFToken string
HasDefender bool
HasExternalLogin bool
HasMFA bool
LoggedAdmin *dataprovider.Admin
Branding UIBranding
}
@@ -486,7 +485,6 @@ func (s *httpdServer) getBasePageData(title, currentURL string, r *http.Request)
Version: version.GetAsString(),
LoggedAdmin: getAdminFromToken(r),
HasDefender: common.Config.DefenderConfig.Enabled,
HasMFA: len(mfa.GetAvailableTOTPConfigs()) > 0,
HasExternalLogin: isLoggedInWithOIDC(r),
CSRFToken: csrfToken,
Branding: s.binding.Branding.WebAdmin,