Skip to content

Commit 720ef0c

Browse files
committedMay 22, 2025
fix(client): show add button
1 parent 51babef commit 720ef0c

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed
 

‎packages/client/src/pages/HomePage.tsx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -328,22 +328,21 @@ export const HomePage = observer((): JSX.Element => {
328328
}}
329329
/>
330330
</Stack>
331-
{configStore.store.config.adminOnlyViewMenuBarFlag &&
332-
configStore.isEngineOperationAvailable(
333-
'APP',
334-
'add',
335-
) && (
336-
<Button
337-
size={'large'}
338-
variant={'contained'}
339-
onClick={() => {
340-
navigate('/app/new');
341-
}}
342-
aria-label={`Open the App Model`}
343-
>
344-
Create New App
345-
</Button>
346-
)}
331+
{configStore.isEngineOperationAvailable(
332+
'APP',
333+
'add',
334+
) && (
335+
<Button
336+
size={'large'}
337+
variant={'contained'}
338+
onClick={() => {
339+
navigate('/app/new');
340+
}}
341+
aria-label={`Open the App Model`}
342+
>
343+
Create New App
344+
</Button>
345+
)}
347346
</Stack>
348347
</Stack>
349348
}

0 commit comments

Comments
 (0)