mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
fix: handling type === gold check in license notifications
This commit is contained in:
parent
8e0423d29d
commit
4be9ba6828
@ -15,6 +15,7 @@ import { useLicenseLimits } from './useLicenseLimits';
|
||||
|
||||
const STORAGE_KEY_PREFIX = 'strapi-notification-seat-limit';
|
||||
|
||||
const BILLING_SELF_HOSTED_URL = 'https://strapi.io/billing/request-seats';
|
||||
const MANAGE_SEATS_URL = 'https://strapi.io/billing/manage-seats';
|
||||
|
||||
export const useLicenseLimitNotification = () => {
|
||||
@ -23,7 +24,7 @@ export const useLicenseLimitNotification = () => {
|
||||
const { toggleNotification } = useNotification();
|
||||
const { pathname } = useLocation();
|
||||
|
||||
const { enforcementUserCount, permittedSeats, licenseLimitStatus, isHostedOnStrapiCloud } =
|
||||
const { enforcementUserCount, permittedSeats, licenseLimitStatus, type } =
|
||||
license ?? {};
|
||||
|
||||
React.useEffect(() => {
|
||||
@ -66,7 +67,7 @@ export const useLicenseLimitNotification = () => {
|
||||
}
|
||||
),
|
||||
link: {
|
||||
url: MANAGE_SEATS_URL,
|
||||
url: type === 'gold' ? BILLING_SELF_HOSTED_URL : MANAGE_SEATS_URL,
|
||||
label: formatMessage({
|
||||
id: 'notification.ee.warning.seat-limit.link',
|
||||
defaultMessage: 'Manage seats',
|
||||
@ -87,7 +88,7 @@ export const useLicenseLimitNotification = () => {
|
||||
permittedSeats,
|
||||
licenseLimitStatus,
|
||||
enforcementUserCount,
|
||||
isHostedOnStrapiCloud,
|
||||
isError,
|
||||
type,
|
||||
]);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user