mirror of
https://github.com/stashapp/stash.git
synced 2026-05-07 12:00:24 +02:00
New: Allow Description and Alias on Tag Creation in Scene Tagger (#6872)
This commit is contained in:
parent
1ec5583931
commit
db4eabea81
2 changed files with 6 additions and 6 deletions
|
|
@ -204,11 +204,7 @@ func (c Client) sceneFragmentToScrapedScene(ctx context.Context, s *graphql.Scen
|
|||
}
|
||||
|
||||
for _, t := range s.Tags {
|
||||
st := &models.ScrapedTag{
|
||||
Name: t.Name,
|
||||
RemoteSiteID: &t.ID,
|
||||
}
|
||||
ss.Tags = append(ss.Tags, st)
|
||||
ss.Tags = append(ss.Tags, tagFragmentToScrapedTag(*t))
|
||||
}
|
||||
|
||||
return ss, nil
|
||||
|
|
|
|||
|
|
@ -434,7 +434,11 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
|
|||
t: GQL.ScrapedTag,
|
||||
createInput?: GQL.TagCreateInput
|
||||
) {
|
||||
const toCreate: GQL.TagCreateInput = createInput ?? { name: t.name };
|
||||
const toCreate: GQL.TagCreateInput = createInput ?? {
|
||||
name: t.name,
|
||||
description: t.description ?? undefined,
|
||||
aliases: t.alias_list?.filter((a) => a) ?? undefined,
|
||||
};
|
||||
|
||||
// If the tag has a remote_site_id and we have an endpoint, include the stash_id
|
||||
const endpoint = currentSource?.sourceInput.stash_box_endpoint;
|
||||
|
|
|
|||
Loading…
Reference in a new issue