diff --git a/android/dashboard/views/components/app_kiwix.ejs b/android/dashboard/views/components/app_kiwix.ejs
index 9c7029e..bd223ca 100644
--- a/android/dashboard/views/components/app_kiwix.ejs
+++ b/android/dashboard/views/components/app_kiwix.ejs
@@ -221,7 +221,7 @@
}
}
- // NEW: Cancel Button
+ // Cancel Button
btnCancelDownload.addEventListener('click', () => {
if(confirm('⚠️ Are you completely sure you want to CANCEL the ongoing download?\n\nIncomplete files will be wiped from your hard drive.')) {
btnCancelDownload.disabled = true;
diff --git a/android/dashboard/views/components/app_maps.ejs b/android/dashboard/views/components/app_maps.ejs
index 9157aed..8896366 100644
--- a/android/dashboard/views/components/app_maps.ejs
+++ b/android/dashboard/views/components/app_maps.ejs
@@ -3,20 +3,30 @@
-
-
-
Waiting for commands...
+
+
Waiting for commands...
+
+
+
+
+
⚠️ The system requires your confirmation to continue:
-
-
+
+
@@ -43,6 +53,28 @@
const rawCommandInput = document.getElementById('raw-command');
const controlsYN = document.getElementById('controls-yn');
+// Logic for Hiding/Showing Map Terminal
+ let mapsTerminalVisible = true;
+ const btnToggleMapsTerminal = document.getElementById('btn-toggle-maps-terminal');
+
+ btnToggleMapsTerminal.addEventListener('click', (e) => {
+ if(mapsTerminalVisible) {
+ terminal.style.display = 'none';
+ e.target.textContent = '▼ Show Terminal';
+ } else {
+ terminal.style.display = 'block';
+ e.target.textContent = '▲ Hide Terminal';
+ }
+ mapsTerminalVisible = !mapsTerminalVisible;
+ });
+
+ // Extra function to force the display of errors or new processes
+ function forceShowMapsTerminal() {
+ terminal.style.display = 'block';
+ btnToggleMapsTerminal.textContent = '▲ Hide Terminal';
+ mapsTerminalVisible = true;
+ }
+
function printToTerminal(text) {
terminal.textContent += text;
terminal.scrollTop = terminal.scrollHeight;