mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
Display stars in the tag editor for prefixes/suffixes
This commit is contained in:
@@ -60,6 +60,14 @@
|
||||
await targetGroup.save();
|
||||
await goto(`/features/groups/${targetGroup.id}`);
|
||||
}
|
||||
|
||||
function mapPrefixNames(tagName: string): string {
|
||||
return `${tagName}*`;
|
||||
}
|
||||
|
||||
function mapSuffixNames(tagName: string): string {
|
||||
return `*${tagName}`;
|
||||
}
|
||||
</script>
|
||||
|
||||
<Menu>
|
||||
@@ -80,12 +88,12 @@
|
||||
</TagsColorContainer>
|
||||
<TagsColorContainer targetCategory={tagCategory}>
|
||||
<FormControl label="Tag Prefixes">
|
||||
<TagsEditor bind:tags={prefixesList}/>
|
||||
<TagsEditor bind:tags={prefixesList} mapTagNames={mapPrefixNames}/>
|
||||
</FormControl>
|
||||
</TagsColorContainer>
|
||||
<TagsColorContainer targetCategory={tagCategory}>
|
||||
<FormControl label="Tag Suffixes">
|
||||
<TagsEditor bind:tags={suffixesList}/>
|
||||
<TagsEditor bind:tags={suffixesList} mapTagNames={mapSuffixNames}/>
|
||||
</FormControl>
|
||||
</TagsColorContainer>
|
||||
</FormContainer>
|
||||
|
||||
Reference in New Issue
Block a user