From ff4598f7da5e8e3041b9f3461b31a5712335d03e Mon Sep 17 00:00:00 2001 From: martonp Date: Mon, 21 Oct 2024 18:10:10 +0200 Subject: [PATCH] Update UI --- client/webserver/locales/en-us.go | 6 ++ .../webserver/site/src/html/mmsettings.tmpl | 28 +++++++ client/webserver/site/src/js/mm.ts | 26 ++++++- client/webserver/site/src/js/mmsettings.ts | 73 +++++++++++++++++-- client/webserver/site/src/js/registry.ts | 4 + 5 files changed, 127 insertions(+), 10 deletions(-) diff --git a/client/webserver/locales/en-us.go b/client/webserver/locales/en-us.go index 15e7364e4a..d7e0e72557 100644 --- a/client/webserver/locales/en-us.go +++ b/client/webserver/locales/en-us.go @@ -658,4 +658,10 @@ var EnUS = map[string]*intl.Translation{ "Hide trading tier info": {T: "Hide trading tier info"}, "Show reputation": {T: "Show reputation"}, "Hide reputation": {T: "Hide reputation"}, + "Top up fee reserves": {T: "Top up fee reserves"}, + "top_up_fee_reserves_tooltip": {T: "When enabled, if the bot's fee reserves run too low, it will be allocated additional available funds from the wallet to be able to cover all configured placements. This is only applicable when the fee asset is neither the base nor quote asset."}, + "Allow external transfers": {T: "Allow external transfers"}, + "external_transfers_tooltip": {T: "When enabled, the bot will be able to transfer funds between the DEX and the CEX."}, + "Internal transfers only": {T: "Internal transfers only"}, + "internal_only_tooltip": {T: "When enabled, the bot will be able to use any available funds in the wallet to simulate a transfer between the DEX and the CEX, (i.e. increase the bot's DEX balance and decrease the bot's CEX balance when a withdrawal needs to be made) but no actual transfers will be made."}, } diff --git a/client/webserver/site/src/html/mmsettings.tmpl b/client/webserver/site/src/html/mmsettings.tmpl index 2402fef851..7f18f3797f 100644 --- a/client/webserver/site/src/html/mmsettings.tmpl +++ b/client/webserver/site/src/html/mmsettings.tmpl @@ -659,6 +659,16 @@ Knobs + + {{- /* TOP UP FEE RESERVES */ -}} + + {{- /* CEX REBALANCE CHECKBOX */ -}}