mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-18 08:09:34 +00:00
Modify select panel visibility
Make the select panel always visible because several user reports suggest that they are unaware of the feature. Also solves the minor issue that selecting/deselecting a single row changes the position of the table which makes it prone to misclicks.
This commit is contained in:
parent
23cd51c1ca
commit
afbd373088
2 changed files with 6 additions and 6 deletions
|
|
@ -42,11 +42,11 @@ export default class extends DatatablesController {
|
|||
|
||||
const selectPanel = this.selectPanelTarget;
|
||||
|
||||
//Hide/Unhide panel with the selection tools
|
||||
//Toggle action button based on selection
|
||||
if (count > 0) {
|
||||
selectPanel.classList.remove('d-none');
|
||||
document.getElementById("selectPanel_submit").disabled = false;
|
||||
} else {
|
||||
selectPanel.classList.add('d-none');
|
||||
document.getElementById("selectPanel_submit").disabled = true;
|
||||
}
|
||||
|
||||
//Update selection count text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue