mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
more warning
This commit is contained in:
1 parent
343b0c0260
commit
533e40fdf3
1 file changed
+14
-1
@@ -267,6 +267,7 @@ function TtsModelViewFc(props: Props) {
|
||||
<ul>
|
||||
{assignedCategories.map(category => {
|
||||
let notApprovedWarning = null;
|
||||
let modelsNotAllowedWarning = null;
|
||||
|
||||
if (!category.is_mod_approved) {
|
||||
notApprovedWarning = (
|
||||
@@ -280,9 +281,21 @@ function TtsModelViewFc(props: Props) {
|
||||
)
|
||||
}
|
||||
|
||||
if (!category.can_directly_have_models) {
|
||||
modelsNotAllowedWarning = (
|
||||
<>
|
||||
<span className="tag is-rounded is-warning is-medium is-light">
|
||||
Models not directly allowed
|
||||
|
||||
<FontAwesomeIcon icon={faExclamationCircle} />
|
||||
</span>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<li>{category.name} {notApprovedWarning}</li>
|
||||
<li>{category.name} {modelsNotAllowedWarning} {notApprovedWarning}</li>
|
||||
</>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user