You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches/route.tsx
+59-38Lines changed: 59 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -287,8 +287,7 @@ export default function Page() {
287
287
Branches docs
288
288
</LinkButton>
289
289
</WhenAgentUnavailable>
290
-
291
-
{limits.isAtLimit ? (
290
+
{!hasBranches&&limits.isAtLimit&&(
292
291
<UpgradePanel
293
292
limits={limits}
294
293
canUpgrade={canUpgrade??false}
@@ -298,46 +297,68 @@ export default function Page() {
298
297
maxBranchQuota={maxBranchQuota}
299
298
planBranchLimit={planBranchLimit}
300
299
/>
301
-
) : (
302
-
<NewBranchPanel
303
-
button={
304
-
<Button
305
-
variant="primary/small"
306
-
shortcut={{key: "n"}}
307
-
LeadingIcon={PlusIcon}
308
-
leadingIconClassName="text-white"
309
-
fullWidth
310
-
textAlignLeft
311
-
disabled={!canManageBranches}
312
-
tooltip={
313
-
canManageBranches ? undefined : "You don't have permission to create branches."
0 commit comments