Skip to content

Commit aebae48

Browse files
committed
chore: update i18n
1 parent 7750f22 commit aebae48

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/sites/domain/domain_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class _FreePlanUpgradeButton extends StatelessWidget {
236236
return Container(
237237
alignment: Alignment.centerLeft,
238238
child: FlowyTooltip(
239-
message: LocaleKeys.settings_sites_namespace_upgradeToPro.tr(),
239+
message: LocaleKeys.settings_sites_homePage_upgradeToPro.tr(),
240240
child: PrimaryRoundedButton(
241241
text: 'Pro ↗',
242242
fontSize: 12.0,

frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/members/inivitation/inivite_member_by_link.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:appflowy/startup/startup.dart';
44
import 'package:appflowy/workspace/presentation/home/menu/sidebar/space/shared_widget.dart';
55
import 'package:appflowy/workspace/presentation/settings/widgets/members/workspace_member_bloc.dart';
66
import 'package:appflowy/workspace/presentation/widgets/dialogs.dart';
7+
import 'package:appflowy_backend/protobuf/flowy-user/workspace.pbenum.dart';
78
import 'package:appflowy_ui/appflowy_ui.dart';
89
import 'package:easy_localization/easy_localization.dart';
910
import 'package:flutter/gestures.dart';
@@ -86,11 +87,14 @@ class _Description extends StatelessWidget {
8687

8788
Future<void> _onGenerateInviteLink(BuildContext context) async {
8889
final state = context.read<WorkspaceMemberBloc>().state;
90+
final subscriptionInfo = state.subscriptionInfo;
8991
final inviteLink = state.inviteLink;
9092

9193
// check the current workspace member count, if it exceed the limit, show a upgrade dialog.
9294
// prevent hard code here, because the member count may exceed the limit after the invite link is generated.
93-
if (inviteLink == null && state.members.length >= 3) {
95+
if (inviteLink == null &&
96+
subscriptionInfo?.plan == WorkspacePlanPB.FreePlan &&
97+
state.members.length >= 2) {
9498
await showConfirmDialog(
9599
context: context,
96100
title:
@@ -165,9 +169,11 @@ class _CopyLinkButtonState extends State<_CopyLinkButton> {
165169
),
166170
onTap: () async {
167171
final state = context.read<WorkspaceMemberBloc>().state;
172+
final subscriptionInfo = state.subscriptionInfo;
168173
// check the current workspace member count, if it exceed the limit, show a upgrade dialog.
169174
// prevent hard code here, because the member count may exceed the limit after the invite link is generated.
170-
if (state.members.length >= 3) {
175+
if (subscriptionInfo?.plan == WorkspacePlanPB.FreePlan &&
176+
state.members.length >= 2) {
171177
await showConfirmDialog(
172178
context: context,
173179
title: LocaleKeys

frontend/resources/translations/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@
561561
"selectHomePage": "Select a page",
562562
"clearHomePage": "Clear the home page for this namespace",
563563
"customUrl": "Custom URL",
564+
"homePage": {
565+
"upgradeToPro": "Upgrade to Pro Plan to set a homepage"
566+
},
564567
"namespace": {
565568
"description": "This change will apply to all the published pages live on this namespace",
566569
"tooltip": "We reserve the rights to remove any inappropriate namespaces",
@@ -3382,4 +3385,4 @@
33823385
"rewrite": "Rewrite",
33833386
"insertBelow": "Insert below"
33843387
}
3385-
}
3388+
}

0 commit comments

Comments
 (0)