Add picker to create scrobble rules on the fly
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user