Replace as we type

This commit is contained in:
rxdn 2022-06-18 21:18:01 +01:00
parent 64c9cad985
commit 8e322a6c4d

View File

@ -119,6 +119,7 @@
{#if !data.use_server_default_naming_scheme}
<Input label="Naming Scheme"
bind:value={data.naming_scheme}
on:input={handleNamingSchemeChange}
placeholder="ticket-%id%"
tooltipText="Click here for the full placeholder list"
tooltipLink="https://docs.ticketsbot.net" />
@ -240,6 +241,10 @@
};
}
function handleNamingSchemeChange() {
data.naming_scheme = data.naming_scheme.replaceAll(' ', '-');
}
function updateColour() {
data.colour = colourToInt(tempColour);
}