From 822521062b424ce3c412df7809105956349775dc Mon Sep 17 00:00:00 2001 From: Matteo Piccina Date: Tue, 22 Oct 2024 23:09:33 +0200 Subject: [PATCH] Add delete message button --- src/renderer/pages/index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/renderer/pages/index.vue b/src/renderer/pages/index.vue index e7f21cf..b1e90d9 100644 --- a/src/renderer/pages/index.vue +++ b/src/renderer/pages/index.vue @@ -82,7 +82,12 @@
Message
- Send +
+ Send + +
@@ -120,7 +125,7 @@ import TimeInput from '../components/TimeInput.vue' import SettingsTab from '../components/SettingsTab.vue' import WindowsTab from "../components/WindowsTab.vue"; import Jog from "../components/Jog.vue"; -import { PlayPauseIcon, PlusIcon, MinusIcon } from '@heroicons/vue/24/outline'; +import { PlayPauseIcon, PlusIcon, MinusIcon, TrashIcon } from '@heroicons/vue/24/outline'; import Navigation from "../components/Navigation.vue"; import { shell } from "electron"; import dayjs from 'dayjs' @@ -179,6 +184,11 @@ function sendMessage() { lastMessage.value = message.value; } +const deleteMessage = () => { + timerControl.sendMessage(''); + message.value = ''; +} + onMounted(async () => { settings.value = await ipcRenderer.invoke('settings:get') screens.value = await ipcRenderer.invoke('get-screens');