[web] Prepare for the switch to Pinia

This commit is contained in:
Alain Nussbaumer
2024-02-21 14:02:47 +01:00
parent 95521c8a48
commit 5c2845784f
8 changed files with 42 additions and 61 deletions

View File

@@ -17,7 +17,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
export default {
name: 'NotificationList',
@@ -30,7 +29,7 @@ export default {
methods: {
remove(notification) {
this.$store.commit(types.DELETE_NOTIFICATION, notification)
this.$store.dispatch('delete_notification', notification)
}
}
}

View File

@@ -22,7 +22,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
@@ -82,7 +81,7 @@ export default {
webapi
.settings_update(this.category_name, option)
.then(() => {
this.$store.commit(types.UPDATE_SETTINGS_OPTION, option)
this.$store.dispatch('update_settings_option', option)
this.statusUpdate = 'success'
})
.catch(() => {

View File

@@ -28,7 +28,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
@@ -112,7 +111,7 @@ export default {
webapi
.settings_update(this.category.name, option)
.then(() => {
this.$store.commit(types.UPDATE_SETTINGS_OPTION, option)
this.$store.dispatch('update_settings_option', option)
this.statusUpdate = 'success'
})
.catch(() => {

View File

@@ -27,7 +27,6 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
@@ -112,7 +111,7 @@ export default {
webapi
.settings_update(this.category.name, option)
.then(() => {
this.$store.commit(types.UPDATE_SETTINGS_OPTION, option)
this.$store.dispatch('update_settings_option', option)
this.statusUpdate = 'success'
})
.catch(() => {