mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: update member exceeded hint text (#6034)
* chore: update member exceeded hint text * fix: disable ai writer widget on mobile
This commit is contained in:
parent
a78752d427
commit
190e3bedda
@ -134,7 +134,8 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
|
||||
const VSpace(16),
|
||||
if (exceededLimit) ...[
|
||||
FlowyText.regular(
|
||||
LocaleKeys.settings_appearance_members_inviteFailedMemberLimit.tr(),
|
||||
LocaleKeys.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||
.tr(),
|
||||
fontSize: 14.0,
|
||||
maxLines: 3,
|
||||
color: Theme.of(context).colorScheme.error,
|
||||
@ -205,7 +206,9 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
|
||||
(f) {
|
||||
Log.error('add workspace member failed: $f');
|
||||
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
||||
? LocaleKeys.settings_appearance_members_memberLimitExceeded.tr()
|
||||
? LocaleKeys
|
||||
.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||
.tr()
|
||||
: LocaleKeys.settings_appearance_members_failedToAddMember.tr();
|
||||
setState(() {
|
||||
exceededLimit = f.code == ErrorCode.WorkspaceMemberLimitExceeded;
|
||||
@ -229,7 +232,8 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
|
||||
(f) {
|
||||
Log.error('invite workspace member failed: $f');
|
||||
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
||||
? LocaleKeys.settings_appearance_members_inviteFailedMemberLimit
|
||||
? LocaleKeys
|
||||
.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||
.tr()
|
||||
: LocaleKeys.settings_appearance_members_failedToInviteMember
|
||||
.tr();
|
||||
|
@ -137,6 +137,10 @@ class _AutoCompletionBlockComponentState
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (PlatformExtension.isMobile) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
return Card(
|
||||
elevation: 5,
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
|
@ -1109,6 +1109,7 @@
|
||||
},
|
||||
"inviteFailedDialogTitle": "Failed to send invite",
|
||||
"inviteFailedMemberLimit": "Member limit has been reached, please upgrade to invite more members.",
|
||||
"inviteFailedMemberLimitMobile": "Your workspace has reached the member limit. Upgrade on Desktop to unlock more features.",
|
||||
"memberLimitExceeded": "Member limit reached, to invite more members, please ",
|
||||
"memberLimitExceededUpgrade": "upgrade",
|
||||
"memberLimitExceededPro": "Member limit reached, if you require more members contact ",
|
||||
|
Loading…
Reference in New Issue
Block a user