feat: Add isPrivate field to AdminProduct and update filtering logic in admin panels
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -4,6 +4,7 @@ class AdminProduct {
|
||||
final String? canonicalName;
|
||||
final String? normalizedName;
|
||||
final int? ownerId;
|
||||
final bool? isPrivate;
|
||||
final int? categoryId;
|
||||
final String? categoryPath;
|
||||
final bool? isActive;
|
||||
@@ -16,6 +17,7 @@ class AdminProduct {
|
||||
this.canonicalName,
|
||||
this.normalizedName,
|
||||
this.ownerId,
|
||||
this.isPrivate,
|
||||
this.categoryId,
|
||||
this.categoryPath,
|
||||
this.isActive,
|
||||
@@ -46,6 +48,7 @@ class AdminProduct {
|
||||
canonicalName: json['canonicalName']?.toString(),
|
||||
normalizedName: json['normalizedName']?.toString(),
|
||||
ownerId: ((json['owner'] as Map<String, dynamic>?)?['id'] as num?)?.toInt(),
|
||||
isPrivate: json['isPrivate'] as bool?,
|
||||
categoryId: (json['categoryId'] as num?)?.toInt(),
|
||||
categoryPath: names.isEmpty ? null : names.join(' > '),
|
||||
isActive: json['isActive'] as bool?,
|
||||
|
||||
Reference in New Issue
Block a user