tab status bar improved

This commit is contained in:
Jan Prochazka
2021-11-21 12:39:52 +01:00
parent a5bc66eb27
commit 6a606bc733
4 changed files with 56 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
<script lang="ts">
import { getContext, onDestroy, onMount } from 'svelte';
import uuidv1 from 'uuid/v1';
import { updateStatuBarInfoItem } from './StatusBar.svelte';
export let text;
const key = uuidv1();
const tabid = getContext('tabid');
onMount(() => {
updateStatuBarInfoItem(tabid, key, { text });
});
onDestroy(() => updateStatuBarInfoItem(tabid, key, null));
</script>