@@ -70,13 +70,13 @@ export class ModerPicturesItemMoveComponent implements OnInit {
70
70
) ;
71
71
}
72
72
73
- private readonly isContentTypeOrEmpty$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_CONTENT ) ;
73
+ private readonly isContentTypeOrEmpty$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_ITEM_CONTENT ) ;
74
74
protected readonly showBrands$ = this . isContentTypeOrEmpty$ ;
75
75
protected readonly showFactories$ = this . isContentTypeOrEmpty$ ;
76
76
protected readonly showMuseums$ = this . isContentTypeOrEmpty$ ;
77
77
protected readonly showPersons$ = this . isContentTypeOrEmpty$ ;
78
- protected readonly showAuthors$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_AUTHOR ) ;
79
- protected readonly showCopyrights$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_COPYRIGHTS ) ;
78
+ protected readonly showAuthors$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_ITEM_AUTHOR ) ;
79
+ protected readonly showCopyrights$ = this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_ITEM_COPYRIGHTS ) ;
80
80
81
81
protected readonly showTabBar$ = combineLatest ( [
82
82
this . showBrands$ ,
@@ -106,9 +106,9 @@ export class ModerPicturesItemMoveComponent implements OnInit {
106
106
) ;
107
107
}
108
108
109
- protected readonly factoriesActive$ = this . tabActive$ ( 'show_factories' , PictureItemType . PICTURE_CONTENT ) ;
110
- protected readonly museumsActive$ = this . tabActive$ ( 'show_museums' , PictureItemType . PICTURE_CONTENT ) ;
111
- protected readonly personsActive$ = this . tabActive$ ( 'show_persons' , PictureItemType . PICTURE_CONTENT ) ;
109
+ protected readonly factoriesActive$ = this . tabActive$ ( 'show_factories' , PictureItemType . PICTURE_ITEM_CONTENT ) ;
110
+ protected readonly museumsActive$ = this . tabActive$ ( 'show_museums' , PictureItemType . PICTURE_ITEM_CONTENT ) ;
111
+ protected readonly personsActive$ = this . tabActive$ ( 'show_persons' , PictureItemType . PICTURE_ITEM_CONTENT ) ;
112
112
113
113
protected readonly authorsActive$ = combineLatest ( [
114
114
this . showAuthors$ ,
@@ -120,15 +120,15 @@ export class ModerPicturesItemMoveComponent implements OnInit {
120
120
] ) . pipe (
121
121
map (
122
122
( [ showAuthors , { srcItemID, srcType} , active ] ) =>
123
- showAuthors && ! srcItemID && ( active || srcType === PictureItemType . PICTURE_AUTHOR ) ,
123
+ showAuthors && ! srcItemID && ( active || srcType === PictureItemType . PICTURE_ITEM_AUTHOR ) ,
124
124
) ,
125
125
shareReplay ( 1 ) ,
126
126
) ;
127
127
128
- protected readonly copyrightsActive$ = this . tabActive$ ( 'show_copyrights' , PictureItemType . PICTURE_COPYRIGHTS ) ;
128
+ protected readonly copyrightsActive$ = this . tabActive$ ( 'show_copyrights' , PictureItemType . PICTURE_ITEM_COPYRIGHTS ) ;
129
129
130
130
protected readonly brandsActive$ = combineLatest ( [
131
- this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_CONTENT ) ,
131
+ this . isSrcTypeOrEmpty$ ( PictureItemType . PICTURE_ITEM_CONTENT ) ,
132
132
this . factoriesActive$ ,
133
133
this . museumsActive$ ,
134
134
this . personsActive$ ,
@@ -190,7 +190,7 @@ export class ModerPicturesItemMoveComponent implements OnInit {
190
190
page,
191
191
typeId : ItemType . ITEM_TYPE_MUSEUM ,
192
192
} ) ,
193
- PictureItemType . PICTURE_CONTENT ,
193
+ PictureItemType . PICTURE_ITEM_CONTENT ,
194
194
) ,
195
195
) ,
196
196
) ;
@@ -205,7 +205,7 @@ export class ModerPicturesItemMoveComponent implements OnInit {
205
205
page,
206
206
typeId : ItemType . ITEM_TYPE_FACTORY ,
207
207
} ) ,
208
- PictureItemType . PICTURE_CONTENT ,
208
+ PictureItemType . PICTURE_ITEM_CONTENT ,
209
209
) ,
210
210
) ,
211
211
) ;
@@ -235,10 +235,10 @@ export class ModerPicturesItemMoveComponent implements OnInit {
235
235
}
236
236
237
237
protected readonly persons$ : Observable < { items : HtmlAndSelectItemParams [ ] ; paginator ?: Pages } > =
238
- this . authorsAndPersons$ ( this . searchPersonControl , PictureItemType . PICTURE_CONTENT ) ;
238
+ this . authorsAndPersons$ ( this . searchPersonControl , PictureItemType . PICTURE_ITEM_CONTENT ) ;
239
239
240
240
protected readonly authors$ : Observable < { items : HtmlAndSelectItemParams [ ] ; paginator ?: Pages } > =
241
- this . authorsAndPersons$ ( this . searchAuthorControl , PictureItemType . PICTURE_AUTHOR ) ;
241
+ this . authorsAndPersons$ ( this . searchAuthorControl , PictureItemType . PICTURE_ITEM_AUTHOR ) ;
242
242
243
243
protected readonly copyrights$ : Observable < { items : HtmlAndSelectItemParams [ ] ; paginator ?: Pages } > = this . page$ . pipe (
244
244
switchMap ( ( page ) =>
@@ -250,7 +250,7 @@ export class ModerPicturesItemMoveComponent implements OnInit {
250
250
page,
251
251
typeId : ItemType . ITEM_TYPE_COPYRIGHT ,
252
252
} ) ,
253
- PictureItemType . PICTURE_COPYRIGHTS ,
253
+ PictureItemType . PICTURE_ITEM_COPYRIGHTS ,
254
254
) ,
255
255
) ,
256
256
) ;
@@ -293,7 +293,7 @@ export class ModerPicturesItemMoveComponent implements OnInit {
293
293
page : 1 ,
294
294
typeId : ItemType . ITEM_TYPE_VEHICLE ,
295
295
} ) ,
296
- PictureItemType . PICTURE_COPYRIGHTS ,
296
+ PictureItemType . PICTURE_ITEM_COPYRIGHTS ,
297
297
) ,
298
298
) ,
299
299
) ;
0 commit comments