mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:47:07 +00:00
React to project deletion
This commit is contained in:
@@ -40,6 +40,15 @@ export default {
|
|||||||
...mapGetters(["loading", "projectId", "serverEvent"])
|
...mapGetters(["loading", "projectId", "serverEvent"])
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
async serverEvent (event) {
|
||||||
|
if (event.channel == "project" && event.payload?.operation == "DELETE" && event.payload?.schema == "public") {
|
||||||
|
// Project potentially deleted
|
||||||
|
await this.getProject(this.$route.params.project);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(["getProject"])
|
...mapActions(["getProject"])
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user