mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
Rename _rowVariant to selectionState
- Updated the variable name from _rowVariant to selectionState for clarity. - Added a class binding based on the selection state to enhance UI feedback.
This commit is contained in:
committed by
Alireza Heidari
parent
9cd8d9c69e
commit
e1b22b23f5
@@ -129,12 +129,13 @@ function formatRows() {
|
||||
|
||||
for (const item of items.value) {
|
||||
if (item.isLeaf) {
|
||||
const _rowVariant =
|
||||
const selectionState =
|
||||
selected.value.findIndex((i) => i.id === item.id) !== -1
|
||||
? SELECTION_STATES.SELECTED
|
||||
: SELECTION_STATES.UNSELECTED;
|
||||
|
||||
set(item, "_rowVariant", _rowVariant);
|
||||
set(item, "selectionState", selectionState);
|
||||
set(item, "class", selectionState === SELECTION_STATES.SELECTED ? "table-success" : undefined);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user