pages/search: actions: discardTab

This commit is contained in:
He4eT 2024-01-21 21:49:45 +01:00
commit f8ec211e19
2 changed files with 20 additions and 4 deletions

View file

@ -89,6 +89,14 @@ export const init = ({
url,
}).then(updateState)
},
discardTab(id) {
browserTabs.discard(id)
.then(updateState)
},
updateTab(id, options) {
browserTabs.update(id, options)
.then(updateState)
},
updateQuery(query) {
state.query = query
updateState()