mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
this is closer!
This commit is contained in:
1 parent
c1480e54a9
commit
aef6d3b41f
1 file changed
+29
-1
@@ -212,6 +212,33 @@ export function MultiDropdownSearch(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
let categoryFields = [];
|
||||
let categoryFieldGroups = [];
|
||||
|
||||
for (let i = 0; i < categoryDropdowns.length; i++) {
|
||||
console.log('categoryDropdowns', i)
|
||||
let categoryDropdown = categoryDropdowns[i];
|
||||
|
||||
categoryFields.push(categoryDropdown);
|
||||
|
||||
if (categoryFields.length >= 2) {
|
||||
categoryFieldGroups.push(
|
||||
<div className="field is-grouped is-grouped">
|
||||
{categoryFields.splice(0, categoryFields.length)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (categoryFields.length >= 0) {
|
||||
categoryFieldGroups.push(
|
||||
<div className="field is-grouped is-grouped">
|
||||
{categoryFields.splice(0, categoryFields.length)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
const leafiestCategory = selectedCategories[selectedCategories.length - 1];
|
||||
|
||||
let leafiestCategoryModels : Set<TtsModelListItem> = new Set();
|
||||
@@ -254,8 +281,9 @@ export function MultiDropdownSearch(props: Props) {
|
||||
{/*<div className="field-label is-normal">
|
||||
<label className="label">Department</label>
|
||||
</div>*/}
|
||||
{separatedCategoryDropdowns}
|
||||
</div>
|
||||
|
||||
{categoryFieldGroups}
|
||||
|
||||
{/*
|
||||
<div className="field is-horizontal">
|
||||
|
||||
Reference in new issue
Block a user