Skip to content

Commit 7a1781c

Browse files
committed
add org status message for when subscription is available to prompt to buy more minutes
1 parent 3ee38b2 commit 7a1781c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

frontend/src/features/org/org-status-banner.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class OrgStatusBanner extends BtrixElement {
261261
}),
262262
},
263263
{
264-
test: () => !readOnly && !!execMinutesQuotaReached,
264+
test: () => !readOnly && !!execMinutesQuotaReached && !subscription,
265265
content: () => ({
266266
title: msg(
267267
str`Your org has reached its monthly execution minutes limit`,
@@ -271,6 +271,18 @@ export class OrgStatusBanner extends BtrixElement {
271271
),
272272
}),
273273
},
274+
{
275+
test: () => !readOnly && !!execMinutesQuotaReached && !!subscription,
276+
content: () => ({
277+
title: msg(
278+
str`Your org has reached its monthly execution minutes limit`,
279+
),
280+
detail: msg(
281+
html`Purchase additional monthly execution minutes or upgrade your
282+
plan from ${billingTabLink}.`,
283+
),
284+
}),
285+
},
274286
];
275287
}
276288
}

0 commit comments

Comments
 (0)