-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the text of the user limit warning
- Loading branch information
Showing
8 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3200,8 +3200,9 @@ en: | |
The activation email has expired. We sent you a new one to %{email}. | ||
Please click the link inside of it to activate your account. | ||
warning_user_limit_reached: > | ||
User limit reached. You cannot activate any more users. | ||
Please <a href="%{upgrade_url}">upgrade your plan</a> or block members to allow for additional users. | ||
Adding additional users will exceed the current limit. Please contact an administrator to increase the user limit to ensure external users are able to access this instance. | ||
warning_user_limit_reached_admin: > | ||
Adding additional users will exceed the current limit. Please <a href="%{upgrade_url}">upgrade your plan</a> to be able to ensure external users are able to access this instance. | ||
warning_user_limit_reached_instructions: > | ||
You reached your user limit (%{current}/%{max} active users). | ||
Please contact [email protected] to upgrade your Enterprise edition plan and add additional users. | ||
|
@@ -3265,10 +3266,12 @@ en: | |
share: "Share" | ||
text_empty_state_description: "The work package has not been shared with anyone yet." | ||
text_empty_state_header: "No shared users" | ||
text_user_limit_reached: | ||
zero: "This instance has reached its user limit, you can’t share with new users. Please contact your administrator to add more members." | ||
one: "Only 1 member left to reach the user limit of the instance. Please contact your administrator." | ||
other: "Only %{count} members left to reach the user limit of the instance. Please contact your administrator." | ||
text_user_limit_reached: "Adding additional users will exceed the current limit. Please contact an administrator to increase the user limit to ensure external users are able to access this work package." | ||
text_user_limit_reached_admins: 'Adding additional users will exceed the current limit. Please <a href="%{upgrade_url}">upgrade your plan</a> to be able to add more users.' | ||
warning_user_limit_reached: > | ||
Adding additional users will exceed the current limit. Please contact an administrator to increase the user limit to ensure external users are able to access this work package. | ||
warning_user_limit_reached_admin: > | ||
Adding additional users will exceed the current limit. Please <a href="%{upgrade_url}">upgrade your plan</a> to be able to ensure external users are able to access this work package. | ||
working_days: | ||
info: > | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,6 @@ | |
before do | ||
allow(OpenProject::Enterprise).to receive_messages( | ||
user_limit: 10, | ||
user_limit_reached?: false, | ||
open_seats_count: 1 | ||
) | ||
end | ||
|
@@ -87,15 +86,13 @@ | |
members_page.search_and_select_principal! '[email protected]', | ||
'Send invite to [email protected]' | ||
|
||
expect(members_page).not_to have_text sanitize_string(I18n.t(:warning_user_limit_reached, | ||
upgrade_url: OpenProject::Enterprise.upgrade_path)), | ||
expect(members_page).not_to have_text sanitize_string(I18n.t(:warning_user_limit_reached)), | ||
normalize_ws: true | ||
|
||
members_page.search_and_select_principal! '[email protected]', | ||
'Send invite to [email protected]' | ||
|
||
expect(members_page).to have_text sanitize_string(I18n.t(:warning_user_limit_reached, | ||
upgrade_url: OpenProject::Enterprise.upgrade_path)), | ||
expect(members_page).to have_text sanitize_string(I18n.t(:warning_user_limit_reached)), | ||
normalize_ws: true | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,7 +260,6 @@ def inherited_member_roles(group:) | |
before do | ||
allow(OpenProject::Enterprise).to receive_messages( | ||
user_limit: 10, | ||
user_limit_reached?: false, | ||
open_seats_count: 1 | ||
) | ||
end | ||
|
@@ -275,7 +274,7 @@ def inherited_member_roles(group:) | |
|
||
# Add another non-existing user that would exceed the user limit | ||
share_modal.select_not_existing_user_option "[email protected]" | ||
share_modal.expect_user_limit_warning(open_seats: 1) | ||
share_modal.expect_user_limit_warning | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters