From d6b56a2f35d4d8767fd7db73cd7eb56e8544e217 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 3 Jan 2022 11:16:07 +0800 Subject: [PATCH] refactor --- src/ui/ab.tis | 10 +++++----- src/ui/index.tis | 12 +++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/ui/ab.tis b/src/ui/ab.tis index 6b073a696..3e94eaec5 100644 --- a/src/ui/ab.tis +++ b/src/ui/ab.tis @@ -108,7 +108,7 @@ class SessionList: Reactor.Component {
  • RDP
  • {translate('Rename')}
  • -
  • {translate('Remove')}
  • + {this.type != "fav" &&
  • {translate('Remove')}
  • } {is_win &&
  • {translate('Create Desktop Shortcut')}
  • }
  • {translate('Unremember Password')}
  • {(!this.type || this.type == "fav") &&
  • {translate('Add to Favorites')}
  • } @@ -241,7 +241,7 @@ class Favorites: Reactor.Component { var sessions = handler.get_fav().map(function(f) { return handler.get_peer(f); }); - return ; + return ; } } @@ -258,8 +258,8 @@ class MultipleSessions: Reactor.Component { {!this.hidden && }
    {!this.hidden && - ((type == "fav" && ) || - )} + ((type == "fav" && ) || + )} ; } @@ -278,4 +278,4 @@ class MultipleSessions: Reactor.Component { handler.set_option('show-sessions-type', el.id || ""); this.stupidUpdate(); } -} \ No newline at end of file +} diff --git a/src/ui/index.tis b/src/ui/index.tis index 6680093ac..89b6fa063 100644 --- a/src/ui/index.tis +++ b/src/ui/index.tis @@ -242,13 +242,11 @@ class App: Reactor.Component var is_can_screen_recording = handler.is_can_screen_recording(false); return
    - - -
  • Refresh random password
  • -
  • Set your own password
  • - -
    -
    + +
  • {translate('Refresh random password')}
  • +
  • {translate('Set your own password')}
  • +
    +
    {translate('Your Desktop')}
    {translate('desk_tip')}