1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +00:00

Guhh nobody saw this

This commit is contained in:
Elvyra 2025-01-03 21:07:12 +01:00 committed by GitHub
parent 3c107556cc
commit a31423034f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,12 +69,7 @@ export function SettingArrayComponent({
} }
return (GuildStore.getGuild(channel.guild_id)?.name ?? "Unknown Guild") + " - " + channel.name; return (GuildStore.getGuild(channel.guild_id)?.name ?? "Unknown Guild") + " - " + channel.name;
} }
/* Pseudocode for handling submit */
function handleSubmit() { function handleSubmit() {
// Handle the submit action for the specific item
// This could involve updating the state, making an API call, etc.
// Clear the input field after submission
const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`) as HTMLInputElement; const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`) as HTMLInputElement;
if (!inputElement || inputElement.value === "") { if (!inputElement || inputElement.value === "") {
return; return;