summaryrefslogtreecommitdiff
path: root/ext/js/pages
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-06-03 18:19:40 -0400
committerGitHub <noreply@github.com>2022-06-03 18:19:40 -0400
commit6cc57d953df7f6201b45cbbb1a8e80dda4d1fa8a (patch)
tree8f744d3b7b17fe36fe9d18ebbb2ce5b8d9af4029 /ext/js/pages
parentc966d9b1ebb12386ac876d93f377fe3a470c6976 (diff)
Settings modal updates (#2173)
* Move the "Add" button into the footer * Scroll to the bottom when adding * Move the Audio Sources add button * Simplify, remove the (?) link * Move "Add" button to footer
Diffstat (limited to 'ext/js/pages')
-rw-r--r--ext/js/pages/settings/scan-inputs-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/js/pages/settings/scan-inputs-controller.js b/ext/js/pages/settings/scan-inputs-controller.js
index 855ccf9a..f6851eb2 100644
--- a/ext/js/pages/settings/scan-inputs-controller.js
+++ b/ext/js/pages/settings/scan-inputs-controller.js
@@ -116,6 +116,12 @@ class ScanInputsController {
deleteCount: 0,
items: [scanningInput]
}]);
+
+ // Scroll to bottom
+ const button = e.currentTarget;
+ const modalContainer = button.closest('.modal');
+ const scrollContainer = modalContainer.querySelector('.modal-body');
+ scrollContainer.scrollTop = scrollContainer.scrollHeight;
}
_addOption(index, scanningInput) {