[Desktop] Persist troubleshooting terminal when hidden (#2398)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2025-02-03 06:29:47 +11:00
committed by GitHub
parent 4eed9c7e53
commit 5f59fbdead
11 changed files with 115 additions and 18 deletions

View File

@@ -7,16 +7,19 @@
</template>
<script setup lang="ts">
import { Ref, ref } from 'vue'
import { Ref, onUnmounted, ref } from 'vue'
import { useTerminal } from '@/hooks/bottomPanelTabs/useTerminal'
const emit = defineEmits<{
created: [ReturnType<typeof useTerminal>, Ref<HTMLElement>]
unmounted: []
}>()
const terminalEl = ref<HTMLElement>()
const rootEl = ref<HTMLElement>()
emit('created', useTerminal(terminalEl), rootEl)
onUnmounted(() => emit('unmounted'))
</script>
<style scoped>