Do not show loading spinner for created projects (#11164)

- Fix https://github.com/enso-org/cloud-v2/issues/1501
- The `Created` project state does not mean the project is opening, so the loading spinner should not appear.
- Regression accidentally introduced by myself in 609d5abbc0 (diff-79e1f8800be680c64a41e2c428927c1f176b728a6a24d5f8c4d02cfc2a3922f9)

# Important Notes
None

(cherry picked from commit f6c262c062)
This commit is contained in:
somebody1234 2024-09-26 00:00:57 +10:00 committed by James Dunkerley
parent c2903de68d
commit 0479381629

View File

@ -134,6 +134,7 @@ export default function ProjectIcon(props: ProjectIconProps) {
case backendModule.ProjectState.new:
case backendModule.ProjectState.closing:
case backendModule.ProjectState.closed:
case backendModule.ProjectState.created:
return (
<ariaComponents.Button
size="custom"
@ -146,7 +147,6 @@ export default function ProjectIcon(props: ProjectIconProps) {
onPress={doOpenProject}
/>
)
case backendModule.ProjectState.created:
case backendModule.ProjectState.openInProgress:
case backendModule.ProjectState.scheduled:
case backendModule.ProjectState.provisioned: