mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:07:08 +00:00
Reload the project list on insert or deletion
This commit is contained in:
@@ -83,7 +83,17 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
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: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user