diff --git a/apps/meteor/app/api/server/v1/cloud.ts b/apps/meteor/app/api/server/v1/cloud.ts
index f0ec59a4dde4..cb867f8cc88c 100644
--- a/apps/meteor/app/api/server/v1/cloud.ts
+++ b/apps/meteor/app/api/server/v1/cloud.ts
@@ -133,9 +133,13 @@ API.v1.addRoute(
},
{
async get() {
- await syncWorkspace();
+ try {
+ await syncWorkspace();
- return API.v1.success();
+ return API.v1.success({ success: true });
+ } catch (error) {
+ return API.v1.failure('Error during workspace sync');
+ }
},
},
);
diff --git a/apps/meteor/client/views/admin/manageSubscription/ManageSubscriptionPage.tsx b/apps/meteor/client/views/admin/manageSubscription/ManageSubscriptionPage.tsx
index 57ac353489cb..f8c626ee1fa7 100644
--- a/apps/meteor/client/views/admin/manageSubscription/ManageSubscriptionPage.tsx
+++ b/apps/meteor/client/views/admin/manageSubscription/ManageSubscriptionPage.tsx
@@ -92,7 +92,6 @@ const ManageSubscriptionPage = () => {
!syncLicenseUpdate.isInitialLoading &&
!syncLicenseUpdate.isRefetching &&
!syncLicenseUpdate.isError &&
- syncLicenseUpdate?.data &&
syncLicenseUpdate?.data?.success
) {
refetchLicense();
@@ -109,56 +108,62 @@ const ManageSubscriptionPage = () => {
{t('Sync_license_update_Callout')}
)}
-
-
- {!isLicenseLoading || licensesData ? (
- <>
-
-
-
-
-
-
- >
- ) : (
- <>
-
-
-
-
-
-
- >
- )}
-
- {plan !== PlanName.COMMUNITY ? (
- <>
-
-
-
-
-
-
- >
- ) : (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )}
-
- {plan !== PlanName.ENTERPRISE && plan !== PlanName.ENTERPRISE_TRIAL && }
-
+ {!isLicenseLoading && plan ? (
+
+
+
+
+
+
+
+
+
+ {plan === PlanName.COMMUNITY ? (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ ) : (
+ <>
+
+
+
+
+
+
+ >
+ )}
+
+ {plan !== PlanName.ENTERPRISE && plan !== PlanName.ENTERPRISE_TRIAL && }
+
+ ) : (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
);
diff --git a/apps/meteor/client/views/admin/manageSubscription/components/cards/FeaturesCard.tsx b/apps/meteor/client/views/admin/manageSubscription/components/cards/FeaturesCard.tsx
index 2b673194b8b3..5ac5f37e7bd0 100644
--- a/apps/meteor/client/views/admin/manageSubscription/components/cards/FeaturesCard.tsx
+++ b/apps/meteor/client/views/admin/manageSubscription/components/cards/FeaturesCard.tsx
@@ -28,7 +28,7 @@ const FeaturesCard = ({ plan }: FeaturesCardProps): ReactElement => {
return CE_FEATURES;
}
- if (plan === PlanName.ENTERPRISE) {
+ if (plan === PlanName.ENTERPRISE || plan === PlanName.ENTERPRISE_TRIAL) {
return ENTERPRISE_FEATURES;
}
diff --git a/apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json b/apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
index 8323f0f6072e..65bde016a432 100644
--- a/apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
+++ b/apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
@@ -6107,7 +6107,7 @@
"Self_managed_hosting": "Self-managed hosting",
"Cloud_hosting": "Rocket.Chat cloud hosting",
"free_per_month_user": "$0 per month/user",
- "Trial_active_active": "Trial active",
+ "Trial_active": "Trial active",
"Contact_sales_renew_date": "<0>Contact sales0> to check plan renew date",
"Renews_DATE": "Renews {{date}}",
"Learn_more_about_enterprise": "Learn more about enterprise",
diff --git a/packages/rest-typings/src/v1/cloud.ts b/packages/rest-typings/src/v1/cloud.ts
index ed676db347a9..8b71738acd0d 100644
--- a/packages/rest-typings/src/v1/cloud.ts
+++ b/packages/rest-typings/src/v1/cloud.ts
@@ -89,6 +89,6 @@ export type CloudEndpoints = {
GET: () => { registrationStatus: CloudRegistrationStatus };
};
'/v1/cloud.syncWorkspace': {
- GET: () => void;
+ GET: () => { success: boolean };
};
};