Move is active to fe (#19649)
## Context Moving isActive filtering to the frontend for page layout tabs and widgets, hiding inactive entities from the UI while keeping them in state for future reactivation Next we will implement deactivated standard tab re-activation during tab creation (cc @Devessier) <img width="234" height="303" alt="📋 Menu (Slots)" src="https://github.com/user-attachments/assets/17a25ac6-55e2-4778-b7f0-e7554ed69704" />
This commit is contained in:
+3
@@ -32,6 +32,9 @@ export class ViewFieldGroupDTO {
|
||||
@Field()
|
||||
updatedAt: Date;
|
||||
|
||||
@Field(() => Boolean, { nullable: false })
|
||||
isActive: boolean;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | null;
|
||||
|
||||
|
||||
+1
-6
@@ -349,12 +349,7 @@ export class ViewFieldGroupService {
|
||||
|
||||
return Object.values(flatViewFieldGroupMaps.byUniversalIdentifier)
|
||||
.filter(isDefined)
|
||||
.filter(
|
||||
(group) =>
|
||||
group.viewId === viewId &&
|
||||
group.isActive &&
|
||||
!isDefined(group.deletedAt),
|
||||
)
|
||||
.filter((group) => group.viewId === viewId && !isDefined(group.deletedAt))
|
||||
.map(fromFlatViewFieldGroupToViewFieldGroupDto)
|
||||
.sort((a, b) => a.position - b.position);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user