From 5b21ffcde54f47ff14d2b5019611e3dd013b5668 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Sun, 16 Mar 2025 13:07:58 +0100 Subject: [PATCH] Add option to allow custom balance amounts and update toggle icon --- ui/ui/admin/settings/app.tpl | 18 ++++++++++++++++++ ui/ui/admin/settings/miscellaneous.tpl | 18 ------------------ ui/ui/customer/footer.tpl | 10 +++++----- ui/ui/customer/header.tpl | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/ui/ui/admin/settings/app.tpl b/ui/ui/admin/settings/app.tpl index 5954d0bc..b5164781 100644 --- a/ui/ui/admin/settings/app.tpl +++ b/ui/ui/admin/settings/app.tpl @@ -649,6 +649,24 @@ value="{$_c['minimum_transfer']}"> +
+ +
+ +
+

+ {Lang::T('Allow Customer buy balance with any amount')} + +

+
diff --git a/ui/ui/admin/settings/miscellaneous.tpl b/ui/ui/admin/settings/miscellaneous.tpl index b2052e11..5b52684a 100644 --- a/ui/ui/admin/settings/miscellaneous.tpl +++ b/ui/ui/admin/settings/miscellaneous.tpl @@ -175,24 +175,6 @@ extend')}

-
- -
- -
-

- {Lang::T('Allow Customer buy balance with any amount')} -
*Please report any issue or bugs
-

-
diff --git a/ui/ui/customer/footer.tpl b/ui/ui/customer/footer.tpl index 2bb6ca86..8d70ccee 100644 --- a/ui/ui/customer/footer.tpl +++ b/ui/ui/customer/footer.tpl @@ -96,19 +96,19 @@ const savedMode = localStorage.getItem('mode'); if (savedMode === 'dark') { body.classList.add('dark-mode'); - toggleIcon.textContent = '🌜'; + toggleIcon.textContent = '🌞'; } - + function setMode(mode) { if (mode === 'dark') { body.classList.add('dark-mode'); - toggleIcon.textContent = '🌜'; + toggleIcon.textContent = '🌞'; } else { body.classList.remove('dark-mode'); - toggleIcon.textContent = '🌞'; + toggleIcon.textContent = '🌜'; } } - + toggleIcon.addEventListener('click', () => { if (body.classList.contains('dark-mode')) { setMode('light'); diff --git a/ui/ui/customer/header.tpl b/ui/ui/customer/header.tpl index 0a049872..e55bc684 100644 --- a/ui/ui/customer/header.tpl +++ b/ui/ui/customer/header.tpl @@ -44,7 +44,7 @@