This commit is contained in:
2024-09-01 18:54:23 +05:00
parent 76d18365a5
commit 061f09eca1
1597 changed files with 109451 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
export default {
created() {
Nova.$on('metric-refresh', this.fetch)
Nova.$on('resources-deleted', this.fetch)
Nova.$on('resources-detached', this.fetch)
Nova.$on('resources-restored', this.fetch)
if (this.card.refreshWhenActionRuns) {
Nova.$on('action-executed', this.fetch)
}
},
beforeUnmount() {
Nova.$off('metric-refresh', this.fetch)
Nova.$off('resources-deleted', this.fetch)
Nova.$off('resources-detached', this.fetch)
Nova.$off('resources-restored', this.fetch)
Nova.$off('action-executed', this.fetch)
},
}