mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-31 09:01:04 +03:00
add option to hide stop-service when service is running (#14563)
* add option to hide stop-service when service is running Signed-off-by: 21pages <sunboeasy@gmail.com> * update hbb_common to upstream Signed-off-by: 21pages <sunboeasy@gmail.com> --------- Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@ const disable_ab = handler.is_disable_ab();
|
||||
const hide_server_settings = handler.get_builtin_option("hide-server-settings") == "Y";
|
||||
const hide_proxy_settings = handler.get_builtin_option("hide-proxy-settings") == "Y";
|
||||
const hide_websocket_settings = handler.get_builtin_option("hide-websocket-settings") == "Y";
|
||||
const hide_stop_service = handler.get_builtin_option("hide-stop-service") == "Y";
|
||||
const disable_change_permanent_password = handler.get_builtin_option("disable-change-permanent-password") == "Y";
|
||||
const disable_change_id = handler.get_builtin_option("disable-change-id") == "Y";
|
||||
|
||||
@@ -532,7 +533,7 @@ class MyIdMenu: Reactor.Component {
|
||||
{!disable_settings && !using_public_server && !outgoing_only && <li #disable-udp class={disable_udp ? "selected" : "line-through"}><span>{svg_checkmark}</span>{translate('Disable UDP')}</li>}
|
||||
{!disable_settings && !using_public_server && <li #allow-insecure-tls-fallback><span>{svg_checkmark}</span>{translate('Allow insecure TLS fallback')}</li>}
|
||||
<div .separator />
|
||||
<li #stop-service class={service_stopped ? "line-through" : "selected"}><span>{svg_checkmark}</span>{translate("Enable service")}</li>
|
||||
{(!hide_stop_service || service_stopped) && <li #stop-service class={service_stopped ? "line-through" : "selected"}><span>{svg_checkmark}</span>{translate("Enable service")}</li>}
|
||||
{!disable_settings && is_win && handler.is_installed() ? <ShareRdp /> : ""}
|
||||
{!disable_settings && <DirectServer />}
|
||||
{!disable_settings && false && handler.using_public_server() && <li #allow-always-relay><span>{svg_checkmark}</span>{translate('Always connect via relay')}</li>}
|
||||
|
||||
Reference in New Issue
Block a user