Skip to content

Commit dd2315f

Browse files
committed
add empty actions message
1 parent c621570 commit dd2315f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/app/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function App() {
4444
{actionSelections}
4545
<uilistlayout Padding={new UDim(0, 5)} SortOrder={Enum.SortOrder.LayoutOrder} key="layout" />
4646
</scrollingframe>
47+
4748
<frame
4849
BackgroundTransparency={1}
4950
Position={UDim2.fromScale(ACTIONS_WIDTH, 0)}
@@ -52,6 +53,21 @@ export function App() {
5253
>
5354
{selectedAction && <ActionState state={selectedAction.state} />}
5455
</frame>
56+
57+
{actions.isEmpty() && (
58+
<textlabel
59+
AnchorPoint={new Vector2(0.5, 0.5)}
60+
AutomaticSize={Enum.AutomaticSize.XY}
61+
BackgroundTransparency={1}
62+
Font={Enum.Font.SourceSans}
63+
Position={UDim2.fromScale(0.5, 0.5)}
64+
Text="Oopsie woopsie, no actions here yet! Try dispatching some."
65+
TextColor3={settings().Studio.Theme.GetColor(Enum.StudioStyleGuideColor.DimmedText)}
66+
TextSize={16}
67+
TextWrapped
68+
key="empty"
69+
/>
70+
)}
5571
</frame>
5672
)
5773
}

0 commit comments

Comments
 (0)