feat: . shortcut to show new items (#2612)
This commit is contained in:
parent
082650d458
commit
3769176eaa
6 changed files with 16 additions and 2 deletions
|
@ -55,4 +55,12 @@ export default defineNuxtPlugin(({ $scrollToTop }) => {
|
|||
?.click()
|
||||
}
|
||||
whenever(logicAnd(isAuthenticated, notUsingInput, keys.b), toggleBoostActiveStatus)
|
||||
|
||||
const showNewItems = () => {
|
||||
// TODO: find a better solution than clicking buttons...
|
||||
document
|
||||
?.querySelector<HTMLElement>('button#elk_show_new_items')
|
||||
?.click()
|
||||
}
|
||||
whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), showNewItems)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue