forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the warning message when a user with bot account gets deleted (m…
- Loading branch information
1 parent
2e6c815
commit 8dbde42
Showing
5 changed files
with
200 additions
and
11 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
...nsole/system_users/system_users_dropdown/__snapshots__/system_users_dropdown.test.js.snap
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`components/admin_console/system_users/system_users_dropdown/system_users_dropdown.jsx renderDeactivateMemberModal should not render the bot accounts warning in case the user do not have any bot accounts 1`] = ` | ||
<div> | ||
<InjectIntl(FormattedMarkdownMessage) | ||
defaultMessage="This action deactivates {username}. They will be logged out and not have access to any teams or channels on this system.\\\\n" | ||
id="deactivate_member_modal.desc" | ||
values={ | ||
Object { | ||
"username": "some-user", | ||
} | ||
} | ||
/> | ||
<InjectIntl(FormattedMarkdownMessage) | ||
defaultMessage="Are you sure you want to deactivate {username}?" | ||
id="deactivate_member_modal.desc.confirm" | ||
values={ | ||
Object { | ||
"username": "some-user", | ||
} | ||
} | ||
/> | ||
<strong> | ||
<br /> | ||
<br /> | ||
<FormattedMessage | ||
defaultMessage="You must also deactivate this user in the SSO provider or they will be reactivated on next login or sync." | ||
id="deactivate_member_modal.sso_warning" | ||
values={Object {}} | ||
/> | ||
</strong> | ||
</div> | ||
`; | ||
|
||
exports[`components/admin_console/system_users/system_users_dropdown/system_users_dropdown.jsx renderDeactivateMemberModal should render the bot accounts warning in case the user do has any bot accounts 1`] = ` | ||
<div> | ||
<InjectIntl(FormattedMarkdownMessage) | ||
defaultMessage="This action deactivates {username}.\\\\n \\\\n * They will be logged out and not have access to any teams or channels on this system.\\\\n * Bot accounts they manage will be disabled along with their integrations. To enable them again, go to Integrations > Bot Accounts. [Learn more about bot accounts](!https://mattermost.com/pl/default-bot-accounts).\\\\n \\\\n \\\\n" | ||
id="deactivate_member_modal.desc.for_users_with_bot_accounts" | ||
values={ | ||
Object { | ||
"username": "some-user", | ||
} | ||
} | ||
/> | ||
<InjectIntl(FormattedMarkdownMessage) | ||
defaultMessage="Are you sure you want to deactivate {username}?" | ||
id="deactivate_member_modal.desc.confirm" | ||
values={ | ||
Object { | ||
"username": "some-user", | ||
} | ||
} | ||
/> | ||
<strong> | ||
<br /> | ||
<br /> | ||
<FormattedMessage | ||
defaultMessage="You must also deactivate this user in the SSO provider or they will be reactivated on next login or sync." | ||
id="deactivate_member_modal.sso_warning" | ||
values={Object {}} | ||
/> | ||
</strong> | ||
</div> | ||
`; |
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