AY-5539 - used labels instead of identifiers

Identifiers are bit hard to get to fill them into Settings, labels are visible in Publisher and can by Copy&Pasted.
This commit is contained in:
Petr Kalis 2024-05-31 12:47:00 +02:00
parent 3ffc19cb06
commit 96c11e6a33
2 changed files with 17 additions and 13 deletions

View file

@ -50,9 +50,11 @@ class FilterCreatorProfile(BaseSettingsModel):
task_names: list[str] = SettingsField(
default_factory=list,
title="Task names")
creator_identifiers: list[str] = SettingsField(
creator_labels: list[str] = SettingsField(
default_factory=list,
title="Allowed Creator Identifiers")
title="Allowed Creator Labels",
description="Copy creator label from Publisher, regex supported."
)
class CreatorToolModel(BaseSettingsModel):
@ -70,7 +72,9 @@ class CreatorToolModel(BaseSettingsModel):
filter_creator_profiles: list[FilterCreatorProfile] = SettingsField(
default_factory=list,
title="Filter creator profiles"
title="Filter creator profiles",
description="White list of creator labels that will be only shown if "
"profile matches context."
)
@validator("product_types_smart_select")