fix cm elevate button visibility of different conn type

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-12-04 18:47:02 +08:00
parent 9bbe236651
commit 5a7f610b59
4 changed files with 36 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ class Body: Reactor.Component
};
var right_style = show_chat ? "" : "display: none";
var disconnected = c.disconnected;
var show_elevation_btn = handler.can_elevate() && show_elevation;
var show_elevation_btn = handler.can_elevate() && show_elevation && !c.is_file_transfer && c.port_forward.length == 0;
var show_accept_btn = handler.get_option('approve-mode') != 'password';
// below size:* is work around for Linux, it alreayd set in css, but not work, shit sciter
return <div .content style="size:*">