Skip to content

Commit f5a67af

Browse files
svenefftingeroboquat
authored andcommitted
[dashboard] fix condition for workspace classes
1 parent 0deaf56 commit f5a67af

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/dashboard/src/projects/ProjectSettings.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,15 @@ export default function () {
158158
</div>
159159
</div>
160160
</div>
161-
161+
{BillingMode.canSetWorkspaceClass(teamBillingMode) && (
162+
<SelectWorkspaceClass
163+
workspaceClass={project.settings?.workspaceClasses?.regular}
164+
enabled={BillingMode.canSetWorkspaceClass(teamBillingMode)}
165+
setWorkspaceClass={setWorkspaceClass}
166+
/>
167+
)}
162168
{showPersistentVolumeClaimUI && (
163169
<>
164-
<SelectWorkspaceClass
165-
workspaceClass={project.settings?.workspaceClasses?.regular}
166-
enabled={BillingMode.canSetWorkspaceClass(teamBillingMode)}
167-
setWorkspaceClass={setWorkspaceClass}
168-
/>
169170
{!BillingMode.canSetWorkspaceClass(teamBillingMode) && <h3 className="mt-12">Workspaces</h3>}
170171
<CheckBox
171172
title={

0 commit comments

Comments
 (0)