mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
feat: show if proxy is enabled in connectivity view (#7359)
closes #7269
This commit is contained in:
@@ -351,6 +351,19 @@ impl Context {
|
||||
<body>"#
|
||||
.to_string();
|
||||
|
||||
// =============================================================================================
|
||||
// Get proxy state
|
||||
// =============================================================================================
|
||||
|
||||
if self
|
||||
.get_config_bool(crate::config::Config::ProxyEnabled)
|
||||
.await?
|
||||
{
|
||||
let proxy_enabled = stock_str::proxy_enabled(self).await;
|
||||
let proxy_description = stock_str::proxy_description(self).await;
|
||||
ret += &format!("<h3>{proxy_enabled}</h3><ul><li>{proxy_description}</li></ul>");
|
||||
}
|
||||
|
||||
// =============================================================================================
|
||||
// Get the states from the RwLock
|
||||
// =============================================================================================
|
||||
|
||||
Reference in New Issue
Block a user