Listen also to shot events.

We need this because the *_lines event will
always fire before any shots have been imported.
This commit is contained in:
D. Berge
2020-10-02 18:35:05 +02:00
parent 198d0072d4
commit eb37a6b6c6

View File

@@ -408,7 +408,7 @@ export default {
},
async serverEvent (event) {
const subscriptions = ["raw_lines", "final_lines"];
const subscriptions = ["raw_lines", "final_lines", "raw_shots", "final_shots"];
if (subscriptions.includes(event.channel) && event.payload.pid == this.$route.params.project) {
if (!this.loading && !this.queuedReload) {
// Do not force a non-cached response if refreshing as a result