[web] Remove unused arguments

This commit is contained in:
Alain Nussbaumer 2024-04-25 21:33:01 +02:00
parent 1e73ba4754
commit 938458b56e

View File

@ -179,7 +179,7 @@ export default createStore({
}, },
actions: { actions: {
add_notification({ commit, state }, notification) { add_notification({ state }, notification) {
const newNotification = { const newNotification = {
id: state.notifications.next_id++, id: state.notifications.next_id++,
text: notification.text, text: notification.text,
@ -203,7 +203,7 @@ export default createStore({
}, notification.timeout) }, notification.timeout)
} }
}, },
add_recent_search({ commit, state }, query) { add_recent_search({ state }, query) {
const index = state.recent_searches.indexOf(query) const index = state.recent_searches.indexOf(query)
if (index !== -1) { if (index !== -1) {
state.recent_searches.splice(index, 1) state.recent_searches.splice(index, 1)
@ -213,19 +213,19 @@ export default createStore({
state.recent_searches.pop() state.recent_searches.pop()
} }
}, },
delete_notification({ commit, state }, notification) { delete_notification({ state }, notification) {
const index = state.notifications.list.indexOf(notification) const index = state.notifications.list.indexOf(notification)
if (index !== -1) { if (index !== -1) {
state.notifications.list.splice(index, 1) state.notifications.list.splice(index, 1)
} }
}, },
remove_recent_search({ commit, state }, query) { remove_recent_search({ state }, query) {
const index = state.recent_searches.indexOf(query) const index = state.recent_searches.indexOf(query)
if (index !== -1) { if (index !== -1) {
state.recent_searches.splice(index, 1) state.recent_searches.splice(index, 1)
} }
}, },
update_settings_option({ commit, state }, option) { update_settings_option({ state }, option) {
const settingCategory = state.settings.categories.find( const settingCategory = state.settings.categories.find(
(e) => e.name === option.category (e) => e.name === option.category
), ),