diff --git a/locales/en.yml b/locales/en.yml index 182c84b..4b222eb 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -2,6 +2,7 @@ copy: Copy paste: Paste continue: Continue complete: Complete +closing: Closing loading: Loading loading_error: Loading error retry: Retry @@ -33,7 +34,9 @@ wallets: locked: Locked unlocked: Unlocked enable_node: 'Enable integrated node to use the wallet or change connection settings by selecting %{settings} at the bottom of the screen.' - wallet_loading: 'Wallet is loading' + wallet_loading: Loading wallet + wallet_closing: Closing wallet + tx_loading: Loading transactions wallet_loading_err: 'An error occurred during loading the wallet, you can retry or change connection settings by selecting %{settings} at the bottom of the screen.' wallet: Wallet send: Send @@ -41,6 +44,7 @@ wallets: settings: Wallet settings network: self: Network + type: 'Network type:' connections: Connections node: Integrated node metrics: Metrics diff --git a/locales/ru.yml b/locales/ru.yml index 7776cef..53955e5 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -2,6 +2,7 @@ copy: Копировать paste: Вставить continue: Продолжить complete: Завершить +closing: Закрывается loading: Загружается loading_error: Ошибка загрузки retry: Повторить @@ -33,7 +34,9 @@ wallets: locked: Заблокирован unlocked: Разблокирован enable_node: 'Чтобы использовать кошелёк, включите встроенный узел или измените настройки подключения, выбрав %{settings} внизу экрана.' - wallet_loading: 'Кошелёк загружается' + wallet_loading: Загрузка кошелька + wallet_closing: Закрытие кошелька + tx_loading: Загрузка транзакций wallet_loading_err: 'Во время загрузки кошелька произошла ошибка, вы можете повторить попытку или изменить настройки подключения, выбрав %{settings} внизу экрана.' wallet: Кошелёк send: Отправить @@ -41,6 +44,7 @@ wallets: settings: Настройки кошелька network: self: Сеть + type: 'Тип сети:' connections: Подключения node: Встроенный узел metrics: Показатели diff --git a/src/gui/views/network/connections.rs b/src/gui/views/network/connections.rs index 82e94eb..06b97e3 100644 --- a/src/gui/views/network/connections.rs +++ b/src/gui/views/network/connections.rs @@ -87,6 +87,7 @@ impl ConnectionsContent { // Show network type selection. let saved_chain_type = AppConfig::chain_type(); NodeSetup::chain_type_ui(ui); + // Start external connections availability check on network type change. if saved_chain_type != AppConfig::chain_type() { ExternalConnection::start_ext_conn_availability_check(); diff --git a/src/gui/views/network/setup/node.rs b/src/gui/views/network/setup/node.rs index 4aaf041..00fbcda 100644 --- a/src/gui/views/network/setup/node.rs +++ b/src/gui/views/network/setup/node.rs @@ -221,6 +221,11 @@ impl NodeSetup { /// Draw [`ChainTypes`] setup content. pub fn chain_type_ui(ui: &mut egui::Ui) { + ui.add_space(1.0); + ui.vertical_centered(|ui| { + ui.label(RichText::new(t!("network.type")).size(16.0).color(Colors::GRAY)); + }); + let saved_chain_type = AppConfig::chain_type(); let mut selected_chain_type = saved_chain_type; @@ -245,10 +250,7 @@ impl NodeSetup { /// Draw API port setup content. fn api_port_setup_ui(&mut self, ui: &mut egui::Ui, cb: &dyn PlatformCallbacks) { - ui.label(RichText::new(t!("network_settings.api_port")) - .size(16.0) - .color(Colors::GRAY) - ); + ui.label(RichText::new(t!("network_settings.api_port")).size(16.0).color(Colors::GRAY)); ui.add_space(6.0); let (_, port) = NodeConfig::get_api_ip_port(); @@ -280,9 +282,7 @@ impl NodeSetup { fn api_port_modal(&mut self, ui: &mut egui::Ui, modal: &Modal, cb: &dyn PlatformCallbacks) { ui.add_space(6.0); ui.vertical_centered(|ui| { - ui.label(RichText::new(t!("network_settings.api_port")) - .size(17.0) - .color(Colors::GRAY)); + ui.label(RichText::new(t!("network_settings.api_port")).size(17.0).color(Colors::GRAY)); ui.add_space(6.0); // Draw API port text edit.