feat(catalog): SSR stats in Visual Manager, honest deletes, newPageParent
Pass DB totals into StatsBar, mirror Catalog Structure delete copy, and open New Page with ?newPageParent= for shop and BC. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
b7fd19b6d9
commit
8d1cf86105
7 files changed
+118
-38
No files matched your search
@@ -212,6 +212,11 @@ export default async function CatalogPagesPage({
|
||||
<CatalogManagerDialog
|
||||
catalogType="bc"
|
||||
canEdit={canEdit}
|
||||
totals={{
|
||||
totalPages: totalBcPages,
|
||||
enabledPages: enabledBcPages,
|
||||
totalItems: totalBcItems,
|
||||
}}
|
||||
initialRoots={bcRootPages.map((p) => ({
|
||||
id: p.id,
|
||||
caption: p.caption,
|
||||
@@ -221,7 +226,12 @@ export default async function CatalogPagesPage({
|
||||
}))}
|
||||
/>
|
||||
)}
|
||||
{canEdit && <CatalogActions catalogType="bc" />}
|
||||
{canEdit && (
|
||||
<CatalogActions
|
||||
catalogType="bc"
|
||||
initialParentId={sp.get("newPageParent")}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{viewMode === "tree" ? (
|
||||
@@ -398,6 +408,11 @@ export default async function CatalogPagesPage({
|
||||
<CatalogManagerDialog
|
||||
catalogType="normal"
|
||||
canEdit={canEdit}
|
||||
totals={{
|
||||
totalPages,
|
||||
enabledPages,
|
||||
totalItems,
|
||||
}}
|
||||
initialRoots={rootPages.map((p) => ({
|
||||
id: p.id,
|
||||
caption: p.caption,
|
||||
@@ -407,7 +422,9 @@ export default async function CatalogPagesPage({
|
||||
}))}
|
||||
/>
|
||||
)}
|
||||
{canEdit && <CatalogActions />}
|
||||
{canEdit && (
|
||||
<CatalogActions initialParentId={sp.get("newPageParent")} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user