Skip to content

Commit cbfc430

Browse files
committed
feat: 10 items per categories page
1 parent fdb88bf commit cbfc430

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed

src/app/api/attrs/attrs.service.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,6 @@ export interface APIAttrConflictsGetResponse {
4646
paginator: APIPaginator;
4747
}
4848

49-
export interface APIAttrValuesGetOptions {
50-
fields?: string;
51-
item_id: number;
52-
limit?: number;
53-
zone_id?: number;
54-
}
55-
56-
export interface APIAttrValue {
57-
attribute_id: number;
58-
value: APIAttrAttributeValue;
59-
value_text: string;
60-
}
61-
62-
export interface APIAttrValuesGetResponse {
63-
items: APIAttrValue[];
64-
paginator: APIPaginator;
65-
}
66-
6749
export interface APIAttrUserValuesOptions {
6850
fields?: string;
6951
item_id: number;
@@ -196,30 +178,6 @@ export class APIAttrsService {
196178
});
197179
}
198180

199-
public getValues$(options: APIAttrValuesGetOptions): Observable<APIAttrValuesGetResponse> {
200-
const params: {[param: string]: string} = {};
201-
202-
if (options.fields) {
203-
params.fields = options.fields;
204-
}
205-
206-
if (options.item_id) {
207-
params.item_id = options.item_id.toString();
208-
}
209-
210-
if (options.zone_id) {
211-
params.zone_id = options.zone_id.toString();
212-
}
213-
214-
if (options.limit) {
215-
params.limit = options.limit.toString();
216-
}
217-
218-
return this.api.request<APIAttrValuesGetResponse>('GET', 'attr/value', {
219-
params,
220-
});
221-
}
222-
223181
public getAttributes$(zoneID: null | string, parentID: null | string): Observable<AttrAttributeTreeItem[]> {
224182
return this.attrsClient
225183
.getAttributes(

src/app/categories/category/item/item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class CategoriesCategoryItemComponent {
5050
'item.twins_groups',
5151
'item.childs_count,item.total_pictures,item.preview_pictures.picture.name_text',
5252
].join(','),
53-
limit: 7,
53+
limit: 10,
5454
order: 'categories_first',
5555
page,
5656
parent_id: current.id,

0 commit comments

Comments
 (0)