Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/client/src/ee/widgets/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const EEWidgets = [];
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type DropTargetComponentProps = PropsWithChildren<{
isMobile?: boolean;
mobileBottomRow?: number;
isListWidgetCanvas?: boolean;
showOnboardingText?: boolean;
}>;

const StyledDropTarget = styled.div`
Expand Down Expand Up @@ -324,7 +325,10 @@ export function DropTargetComponent(props: DropTargetComponentProps) {
};

const shouldOnboard =
!(childWidgets && childWidgets.length) && !isDragging && !props.parentId;
!(childWidgets && childWidgets.length) &&
!isDragging &&
// If the parentId is not set (true for main canvas), or the showOnboardingText is true (for module canvas)
(!props.parentId || props.showOnboardingText);

// The drag layer is the one with the grid dots.
// They need to show in certain scenarios
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const FixedLayoutEditorCanvas = (props: BaseWidgetProps) => {
parentId: props.parentId,
snapColumnSpace: snapColumnSpace,
widgetId: props.widgetId,
showOnboardingText: props.showOnboardingText,
}),
[
props.bottomRow,
Expand All @@ -47,6 +48,7 @@ export const FixedLayoutEditorCanvas = (props: BaseWidgetProps) => {
props.parentId,
snapColumnSpace,
props.widgetId,
props.showOnboardingText,
],
);
const layoutSystemProps = {
Expand Down
2 changes: 2 additions & 0 deletions app/client/src/widgets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ import { WDSCustomWidget } from "modules/ui-builder/ui/wds/WDSCustomWidget";
import { EEWDSWidgets } from "ee/modules/ui-builder/ui/wds";
import { WDSDatePickerWidget } from "modules/ui-builder/ui/wds/WDSDatePickerWidget";
import { WDSMultiSelectWidget } from "modules/ui-builder/ui/wds/WDSMultiSelectWidget";
import { EEWidgets } from "ee/widgets";

const LegacyWidgets = [
CanvasWidget,
Expand Down Expand Up @@ -198,6 +199,7 @@ const Widgets = [
...DeprecatedWidgets,
...LegacyWidgets,
...EEWDSWidgets,
...EEWidgets,
] as (typeof BaseWidget)[];

export default Widgets;
Loading