onCancel?(): any;
onUpsertCommunity(form: CreateCommunity | EditCommunity): void;
enableNsfw?: boolean;
- isLoading?: boolean;
+ loading?: boolean;
}
interface CommunityFormState {
<form onSubmit={linkEvent(this, this.handleCreateCommunitySubmit)}>
<NavigationPrompt
when={
- !this.props.isLoading &&
+ !this.props.loading &&
!!(
this.state.form.name ||
this.state.form.title ||
<button
type="submit"
className="btn btn-secondary mr-2"
- disabled={this.props.isLoading}
+ disabled={this.props.loading}
>
- {this.props.isLoading ? (
+ {this.props.loading ? (
<Spinner />
) : this.props.community_view ? (
capitalizeFirstLetter(i18n.t("save"))
allLanguages={this.state.siteRes.all_languages}
siteLanguages={this.state.siteRes.discussion_languages}
communityLanguages={this.state.siteRes.discussion_languages}
- isLoading={this.state.loading}
+ loading={this.state.loading}
/>
</div>
</div>