Update as we type
This commit is contained in:
parent
4f22657083
commit
6d34a27d53
@ -119,7 +119,6 @@
|
|||||||
{#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" />
|
||||||
@ -174,6 +173,11 @@
|
|||||||
let selectedTeams = seedDefault ? [{id: 'default', name: 'Default'}] : [];
|
let selectedTeams = seedDefault ? [{id: 'default', name: 'Default'}] : [];
|
||||||
let selectedMentions = [];
|
let selectedMentions = [];
|
||||||
|
|
||||||
|
// Replace spaces with dashes in naming scheme as the user types
|
||||||
|
$: if (data.naming_scheme.includes(' ')) {
|
||||||
|
data.naming_scheme = data.naming_scheme.replaceAll(' ', '-');
|
||||||
|
}
|
||||||
|
|
||||||
function updateMentions() {
|
function updateMentions() {
|
||||||
if (selectedMentions === undefined) {
|
if (selectedMentions === undefined) {
|
||||||
selectedMentions = [];
|
selectedMentions = [];
|
||||||
@ -241,10 +245,6 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
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