Skip to content

Commit

Permalink
Add button to remove audio file
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Oct 22, 2024
1 parent 3589e90 commit f574300
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/renderer/components/SettingsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@
<check-box id="messageBoxFixedHeight" v-model="settings.timers[0].windows[0].messageBoxFixedHeight">Message box fixed height</check-box>
<check-box id="use12HourClock" v-model="settings.timers[0].windows[0].use12HourClock">12-Hour Clock</check-box>
<hr class="mt-4 -mx-3 border-t-2"/>
<p class="text-2xl mt-3">Audio</p>
<p class="text-2xl mt-3 mb-1">
Audio
<button @click="settings.timers[0].audioFile = null" v-if="settings.timers[0].audioFile"><trash-icon class="inline-flex w-5 h-5"></trash-icon></button>
</p>
<s-button @click="selectFile">Select file</s-button>
<div class="max-w-[200px] break-words">Current: {{ settings.timers[0].audioFile }}</div>
<div class="max-w-[190px] break-words">Current: {{ settings.timers[0].audioFile }}</div>
</card>
<card class="inline-block border flex flex-col">
<div class="flex flex-col" style="min-width: 220px">
Expand Down Expand Up @@ -83,7 +86,7 @@

<script lang="ts" setup>
import {computed, defineComponent, onBeforeMount, ref, watch} from "vue";
import {ArrowsRightLeftIcon} from "@heroicons/vue/20/solid";
import {ArrowsRightLeftIcon, TrashIcon} from "@heroicons/vue/20/solid";
import {ipcRenderer} from 'electron'
import draggable from 'vuedraggable'
import Card from './Card.vue'
Expand Down

0 comments on commit f574300

Please sign in to comment.