You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-12 23:50:27 +02:00
Feature added: Pressing enter should create a category
This commit is contained in:
@ -32,6 +32,7 @@ const CreateCategory = (props: Props): JSX.Element => {
|
||||
className='CreateCategoryModal'
|
||||
onClose={props.onClose}
|
||||
>
|
||||
<form>
|
||||
<div className='CreateCategory'>
|
||||
<h3>{props.title}</h3>
|
||||
<input
|
||||
@ -56,11 +57,13 @@ const CreateCategory = (props: Props): JSX.Element => {
|
||||
filled={Boolean(name)}
|
||||
onClick={() => props.onCreate(name)}
|
||||
disabled={!name}
|
||||
submit={true}
|
||||
>
|
||||
{props.initialValue ? updateText : createText}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user