Add picker to create scrobble rules on the fly

This commit is contained in:
Claudio Ortolina
2026-04-15 10:53:58 +01:00
parent b9612a2a26
commit 405235e2b3
9 changed files with 530 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
import createNavigationHook from "./create-navigation-hook";
export default createNavigationHook({
getContainer: (hook) => hook.el,
inputId: "rule-picker-search-input",
onSelect: (hook) => {
if (hook.selectedIndex === 0) {
hook.navigateDown();
} else {
hook.navigateUp();
}
}
});