From 11b9515babe80b5574804aeeee80b9563a8cc700 Mon Sep 17 00:00:00 2001 From: Andrei Tudor Date: Tue, 27 May 2025 12:39:36 +0300 Subject: [PATCH] Updated UI elements to use the custom ones --- Plugins/PollMaker/SlashCommands/MakePoll.cs | 4 +++- WebUI/Components/Pages/Settings.razor | 15 ++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Plugins/PollMaker/SlashCommands/MakePoll.cs b/Plugins/PollMaker/SlashCommands/MakePoll.cs index 4ffa416..23d8104 100644 --- a/Plugins/PollMaker/SlashCommands/MakePoll.cs +++ b/Plugins/PollMaker/SlashCommands/MakePoll.cs @@ -102,9 +102,11 @@ public class MakePoll : IDbSlashCommand var state = new PollState(q, opts); Polls[msg.Id] = state; - + if (timed) + { _ = ClosePollLaterAsync(log, msg, state, hours); + } } public async Task ExecuteInteraction(ILogger log, SocketInteraction interaction) diff --git a/WebUI/Components/Pages/Settings.razor b/WebUI/Components/Pages/Settings.razor index b414e88..ed83135 100644 --- a/WebUI/Components/Pages/Settings.razor +++ b/WebUI/Components/Pages/Settings.razor @@ -15,21 +15,18 @@
- - + +
- - + +
- - + +