Skip to content

Commit

Permalink
chore: switched to enabling language warning by prop rather than disa…
Browse files Browse the repository at this point in the history
…bling
  • Loading branch information
skspade committed Jun 9, 2023
1 parent 9d45b4a commit 23c4b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/common/language-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface LanguageSelectProps {
showSite?: boolean;
iconVersion?: boolean;
disabled?: boolean;
hideLanguageWarning?: boolean;
showLanguageWarning?: boolean;
}

export class LanguageSelect extends Component<LanguageSelectProps, any> {
Expand Down Expand Up @@ -50,7 +50,7 @@ export class LanguageSelect extends Component<LanguageSelectProps, any> {
this.selectBtn
) : (
<div>
{this.props.multiple && !this.props.hideLanguageWarning && (
{this.props.multiple && this.props.showLanguageWarning && (
<div className="alert alert-warning" role="alert">
{i18n.t("undetermined_language_warning")}
</div>
Expand Down
1 change: 0 additions & 1 deletion src/shared/components/community/community-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ export class CommunityForm extends Component<
showSite
selectedLanguageIds={this.state.form.discussion_languages}
multiple={true}
hideLanguageWarning={true}
onChange={this.handleDiscussionLanguageChange}
/>
<div className="form-group row">
Expand Down
1 change: 1 addition & 0 deletions src/shared/components/person/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ export class Settings extends Component<any, SettingsState> {
siteLanguages={this.state.siteRes.discussion_languages}
selectedLanguageIds={selectedLangs}
multiple={true}
showLanguageWarning={true}
showSite
onChange={this.handleDiscussionLanguageChange}
/>
Expand Down

0 comments on commit 23c4b68

Please sign in to comment.