Reload the project list on insert or deletion

This commit is contained in:
D. Berge
2023-08-23 19:35:12 +02:00
parent 72e67d0e5d
commit 229fdf20ef

View File

@@ -83,7 +83,17 @@ export default {
},
computed: {
...mapGetters(['loading'])
...mapGetters(['loading', 'serverEvent'])
},
watch: {
async serverEvent (event) {
if (event.channel == "project" && event.payload?.schema == "public") {
if (event.payload?.operation == "DELETE" || event.payload?.operation == "INSERT") {
await this.load();
}
}
}
},
methods: {