Replace as we type
This commit is contained in:
parent
64c9cad985
commit
8e322a6c4d
@ -119,6 +119,7 @@
|
|||||||
{#if !data.use_server_default_naming_scheme}
|
{#if !data.use_server_default_naming_scheme}
|
||||||
<Input label="Naming Scheme"
|
<Input label="Naming Scheme"
|
||||||
bind:value={data.naming_scheme}
|
bind:value={data.naming_scheme}
|
||||||
|
on:input={handleNamingSchemeChange}
|
||||||
placeholder="ticket-%id%"
|
placeholder="ticket-%id%"
|
||||||
tooltipText="Click here for the full placeholder list"
|
tooltipText="Click here for the full placeholder list"
|
||||||
tooltipLink="https://docs.ticketsbot.net" />
|
tooltipLink="https://docs.ticketsbot.net" />
|
||||||
@ -240,6 +241,10 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleNamingSchemeChange() {
|
||||||
|
data.naming_scheme = data.naming_scheme.replaceAll(' ', '-');
|
||||||
|
}
|
||||||
|
|
||||||
function updateColour() {
|
function updateColour() {
|
||||||
data.colour = colourToInt(tempColour);
|
data.colour = colourToInt(tempColour);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user