summaryrefslogtreecommitdiffstats
path: root/ui/src/components/create-community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-04 13:00:19 -0700
committerDessalines <tyhou13@gmx.com>2019-04-04 13:00:19 -0700
commitd07a1b4563b829232040c9b1156a6598f493f469 (patch)
tree41ef81c91c558f8d7841f58ce53d0bfb745863e7 /ui/src/components/create-community.tsx
parent927cb6d35637c886df019bcbf8f2434afe63ca80 (diff)
Adding forum / community page
- Adding the page. Fixes #17. - Adding number of comments for community. - Add sorting to that table.
Diffstat (limited to 'ui/src/components/create-community.tsx')
-rw-r--r--ui/src/components/create-community.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/create-community.tsx b/ui/src/components/create-community.tsx
index c5149f0a..e21db8ac 100644
--- a/ui/src/components/create-community.tsx
+++ b/ui/src/components/create-community.tsx
@@ -64,7 +64,7 @@ export class CreateCommunity extends Component<any, State> {
<div class="form-group row">
<label class="col-sm-2 col-form-label">Name</label>
<div class="col-sm-10">
- <input type="text" class="form-control" value={this.state.communityForm.name} onInput={linkEvent(this, this.handleCommunityNameChange)} required minLength={3} />
+ <input type="text" class="form-control" value={this.state.communityForm.name} onInput={linkEvent(this, this.handleCommunityNameChange)} required minLength={3} pattern="[a-z0-9_]+" title="lowercase, underscores, and no spaces."/>
</div>
</div>
<div class="form-group row">