u
This commit is contained in:
@@ -366,7 +366,7 @@ _none_
|
|||||||
- Returns: `200 { message: str }`
|
- Returns: `200 { message: str }`
|
||||||
#### Current user — `GET /auth/me`
|
#### Current user — `GET /auth/me`
|
||||||
_none_
|
_none_
|
||||||
- Returns: `200 { user: T32, googleClientId: str }`
|
- Returns: `200 { user: T32, googleClientId: str, schemaVersion: int }`
|
||||||
#### Set selected company — `PUT /auth/selected-company`
|
#### Set selected company — `PUT /auth/selected-company`
|
||||||
- Params: `body: { companyId: int }`
|
- Params: `body: { companyId: int }`
|
||||||
- Returns: `200 { user: T32 }`
|
- Returns: `200 { user: T32 }`
|
||||||
@@ -446,7 +446,7 @@ _none_
|
|||||||
- Params: `id: int, body: { name?: str, parentId?: int }`
|
- Params: `id: int, body: { name?: str, parentId?: int }`
|
||||||
- Returns: `200 { category: { id: int, name: str, slug: str, parentId: int, sort: int } }`
|
- Returns: `200 { category: { id: int, name: str, slug: str, parentId: int, sort: int } }`
|
||||||
#### Articles in category — `GET /category/{id}/articles`
|
#### Articles in category — `GET /category/{id}/articles`
|
||||||
- Params: `id: int`
|
- Params: `id: int, query: includeChildren?: bool`
|
||||||
- Returns: `200 { articles: { id: int, sku: str, name: str, slug: str, track_stock: bool, optionsCount: int, articleListCount: int, childCount: int, net?: num|null, taxRate?: num|null, parentArticleId?: int|null, parentSku?: str|null, fullHash?: str|null, thumbW?: int|null, thumbH?: int|null, thumbHash?: str|null, smallThumbW?: int|null, smallThumbH?: int|null, smallThumbBinary?: str|null, brand?: T25|null, articlewarehousesummary?: { id: int, articleId: int, warehouseId: int, stock: num, article_id?: int, warehouse_id?: int, warehouseName?: str|null }[], warehouses?: { id: int, name: str, stock: num }[] }[] }`
|
- Returns: `200 { articles: { id: int, sku: str, name: str, slug: str, track_stock: bool, optionsCount: int, articleListCount: int, childCount: int, net?: num|null, taxRate?: num|null, parentArticleId?: int|null, parentSku?: str|null, fullHash?: str|null, thumbW?: int|null, thumbH?: int|null, thumbHash?: str|null, smallThumbW?: int|null, smallThumbH?: int|null, smallThumbBinary?: str|null, brand?: T25|null, articlewarehousesummary?: { id: int, articleId: int, warehouseId: int, stock: num, article_id?: int, warehouse_id?: int, warehouseName?: str|null }[], warehouses?: { id: int, name: str, stock: num }[] }[] }`
|
||||||
#### List category attribute values — `GET /category/{id}/attributevalue`
|
#### List category attribute values — `GET /category/{id}/attributevalue`
|
||||||
- Params: `id: int`
|
- Params: `id: int`
|
||||||
|
|||||||
@@ -555,16 +555,19 @@ class ArtikelKategorienPage extends PureComponent {
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{!renameMode && articles.map((item, index) => (
|
{!renameMode &&
|
||||||
<ArticleTile
|
articles
|
||||||
key={item.id}
|
.filter((item) => item.parentArticleId == null && !item.parentSku)
|
||||||
label={item.name != null ? item.name.trim() : undefined}
|
.map((item, index) => (
|
||||||
article={item}
|
<ArticleTile
|
||||||
disabled={!articleSku(item)}
|
key={item.id}
|
||||||
onClick={() => this.handleArticleClick(item)}
|
label={item.name != null ? item.name.trim() : undefined}
|
||||||
sx={index === 0 ? { gridColumnStart: 1 } : undefined}
|
article={item}
|
||||||
/>
|
disabled={!articleSku(item)}
|
||||||
))}
|
onClick={() => this.handleArticleClick(item)}
|
||||||
|
sx={index === 0 ? { gridColumnStart: 1 } : undefined}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
{renameMode && <NewCategoryTile parentId={resolvedCategoryId} />}
|
{renameMode && <NewCategoryTile parentId={resolvedCategoryId} />}
|
||||||
{renameMode && loaded && (
|
{renameMode && loaded && (
|
||||||
|
|||||||
Reference in New Issue
Block a user