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),
|
const VSpace(16),
|
||||||
if (exceededLimit) ...[
|
if (exceededLimit) ...[
|
||||||
FlowyText.regular(
|
FlowyText.regular(
|
||||||
LocaleKeys.settings_appearance_members_inviteFailedMemberLimit.tr(),
|
LocaleKeys.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||||
|
.tr(),
|
||||||
fontSize: 14.0,
|
fontSize: 14.0,
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
color: Theme.of(context).colorScheme.error,
|
color: Theme.of(context).colorScheme.error,
|
||||||
@ -205,7 +206,9 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
|
|||||||
(f) {
|
(f) {
|
||||||
Log.error('add workspace member failed: $f');
|
Log.error('add workspace member failed: $f');
|
||||||
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
||||||
? LocaleKeys.settings_appearance_members_memberLimitExceeded.tr()
|
? LocaleKeys
|
||||||
|
.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||||
|
.tr()
|
||||||
: LocaleKeys.settings_appearance_members_failedToAddMember.tr();
|
: LocaleKeys.settings_appearance_members_failedToAddMember.tr();
|
||||||
setState(() {
|
setState(() {
|
||||||
exceededLimit = f.code == ErrorCode.WorkspaceMemberLimitExceeded;
|
exceededLimit = f.code == ErrorCode.WorkspaceMemberLimitExceeded;
|
||||||
@ -229,7 +232,8 @@ class _InviteMemberPageState extends State<_InviteMemberPage> {
|
|||||||
(f) {
|
(f) {
|
||||||
Log.error('invite workspace member failed: $f');
|
Log.error('invite workspace member failed: $f');
|
||||||
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
final message = f.code == ErrorCode.WorkspaceMemberLimitExceeded
|
||||||
? LocaleKeys.settings_appearance_members_inviteFailedMemberLimit
|
? LocaleKeys
|
||||||
|
.settings_appearance_members_inviteFailedMemberLimitMobile
|
||||||
.tr()
|
.tr()
|
||||||
: LocaleKeys.settings_appearance_members_failedToInviteMember
|
: LocaleKeys.settings_appearance_members_failedToInviteMember
|
||||||
.tr();
|
.tr();
|
||||||
|
@ -137,6 +137,10 @@ class _AutoCompletionBlockComponentState
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
if (PlatformExtension.isMobile) {
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
|
|
||||||
return Card(
|
return Card(
|
||||||
elevation: 5,
|
elevation: 5,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
@ -1109,6 +1109,7 @@
|
|||||||
},
|
},
|
||||||
"inviteFailedDialogTitle": "Failed to send invite",
|
"inviteFailedDialogTitle": "Failed to send invite",
|
||||||
"inviteFailedMemberLimit": "Member limit has been reached, please upgrade to invite more members.",
|
"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 ",
|
"memberLimitExceeded": "Member limit reached, to invite more members, please ",
|
||||||
"memberLimitExceededUpgrade": "upgrade",
|
"memberLimitExceededUpgrade": "upgrade",
|
||||||
"memberLimitExceededPro": "Member limit reached, if you require more members contact ",
|
"memberLimitExceededPro": "Member limit reached, if you require more members contact ",
|
||||||
|
Loading…
Reference in New Issue
Block a user