Skip to content

Commit 1fe77c7

Browse files
committed
feat(stage-tamagotchi): refresh button in stage
1 parent c14f74d commit 1fe77c7

File tree

1 file changed

+14
-0
lines changed
  • apps/stage-tamagotchi/src/renderer/components/StageIslands/ControlsIsland

1 file changed

+14
-0
lines changed

apps/stage-tamagotchi/src/renderer/components/StageIslands/ControlsIsland/index.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const startDraggingWindow = !isLinux ? defineInvoke(context.value, electronStart
3434
// Expose whether hearing dialog is open so parent can disable click-through
3535
const hearingDialogOpen = ref(false)
3636
defineExpose({ hearingDialogOpen })
37+
38+
function refreshWindow() {
39+
window.location.reload()
40+
}
3741
</script>
3842

3943
<template>
@@ -59,6 +63,16 @@ defineExpose({ hearingDialogOpen })
5963
</template>
6064
</ControlButtonTooltip>
6165

66+
<ControlButtonTooltip>
67+
<ControlButton @click="refreshWindow">
68+
<div i-solar:refresh-linear size-5 text="neutral-800 dark:neutral-300" />
69+
</ControlButton>
70+
71+
<template #tooltip>
72+
Refresh
73+
</template>
74+
</ControlButtonTooltip>
75+
6276
<ControlButtonTooltip>
6377
<ControlsIslandHearingConfig v-model:show="hearingDialogOpen">
6478
<div class="relative">

0 commit comments

Comments
 (0)