This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* MM-23816: Group Mentions: Add ability to rename group names Co-authored-by: Catalin Tomai <[email protected]>
- Loading branch information
1 parent
e5637e5
commit 44f496d
Showing
13 changed files
with
251 additions
and
26 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
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
44 changes: 44 additions & 0 deletions
44
components/admin_console/group_settings/group_details/group_details_errors.jsx
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,44 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import React from 'react'; | ||
|
||
import {FormattedMessage} from 'react-intl'; | ||
|
||
import FormError from 'components/form_error'; | ||
|
||
export const NeedGroupNameError = () => ( | ||
<FormError | ||
iconClassName={'fa-exclamation-triangle'} | ||
textClassName={'has-error'} | ||
error={( | ||
<FormattedMessage | ||
id='admin.group_settings.need_groupname' | ||
defaultMessage='You must specify a group mention.' | ||
/>)} | ||
/> | ||
); | ||
|
||
export const GroupNameIsTakenError = () => ( | ||
<FormError | ||
iconClassName={'fa-exclamation-triangle'} | ||
textClassName={'has-error'} | ||
error={( | ||
<FormattedMessage | ||
id='admin.group_settings.group_detail.duplicateMentionNameError' | ||
defaultMessage='Group mention is already taken.' | ||
/>)} | ||
/> | ||
); | ||
|
||
export const InvalidOrReservedGroupNameError = () => ( | ||
<FormError | ||
iconClassName={'fa-exclamation-triangle'} | ||
textClassName={'has-error'} | ||
error={( | ||
<FormattedMessage | ||
id='admin.group_settings.group_detail.invalidOrReservedMentionNameError' | ||
defaultMessage='Only letters (a-z), numbers(0-9), periods, dashes and underscores are allowed.' | ||
/>)} | ||
/> | ||
); |
Oops, something went wrong.