File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export class PostCat {
5
5
visible = true
6
6
description = ''
7
7
updateTime : Date = new Date ( )
8
- count = 0
8
+ itemCount = 0
9
9
order ?: number
10
10
childCount = 0
11
11
visibleChildCount = 0
@@ -31,4 +31,4 @@ export type PostCatAddDto = {
31
31
visible : boolean
32
32
description : string
33
33
}
34
- export type PostCatUpdateDto = Pick < PostCat , 'categoryId' | 'description' | 'count ' | 'title' | 'order' | 'visible' >
34
+ export type PostCatUpdateDto = Pick < PostCat , 'categoryId' | 'description' | 'itemCount ' | 'title' | 'order' | 'visible' >
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ const postConverter: Converter<Post> = obj => {
51
51
} )
52
52
}
53
53
54
- const categoryConverter : Converter < PostCat > = ( { title, count } ) =>
55
- Object . assign < TreeItem , TreeItem > ( new TreeItem ( `${ title } (${ count } )` ) , {
56
- collapsibleState : count > 0 ? TreeItemCollapsibleState . Collapsed : TreeItemCollapsibleState . None ,
54
+ const categoryConverter : Converter < PostCat > = ( { title, itemCount } ) =>
55
+ Object . assign < TreeItem , TreeItem > ( new TreeItem ( `${ title } (${ itemCount } )` ) , {
56
+ collapsibleState : itemCount > 0 ? TreeItemCollapsibleState . Collapsed : TreeItemCollapsibleState . None ,
57
57
iconPath : categoryIcon ( ) ,
58
58
contextValue : 'cnb-post-category' ,
59
59
} )
You can’t perform that action at this time.
0 commit comments