fix: stop recording when app is unmounted
This commit is contained in:
parent
a439433977
commit
916a2c53af
@ -39,6 +39,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import AppsIcon from '@/components/Icons/AppsIcon.vue'
|
import AppsIcon from '@/components/Icons/AppsIcon.vue'
|
||||||
import { Popover, createResource } from 'frappe-ui'
|
import { Popover, createResource } from 'frappe-ui'
|
||||||
|
import { onUnmounted } from 'vue';
|
||||||
|
import { stopRecording } from '@/telemetry';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
active: Boolean,
|
active: Boolean,
|
||||||
@ -70,4 +72,8 @@ const apps = createResource({
|
|||||||
return _apps
|
return _apps
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
stopRecording()
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user