Merged changes from main and ran extract
This commit is contained in:
parent
534a405f61
commit
bede81a921
2 changed files with 20 additions and 7 deletions
|
@ -39,6 +39,8 @@
|
||||||
"Filter.not-includes": "doesn't include",
|
"Filter.not-includes": "doesn't include",
|
||||||
"FilterComponent.add-filter": "+ Add filter",
|
"FilterComponent.add-filter": "+ Add filter",
|
||||||
"FilterComponent.delete": "Delete",
|
"FilterComponent.delete": "Delete",
|
||||||
|
"GalleryCard.delete": "Delete",
|
||||||
|
"GalleryCard.duplicate": "Duplicate",
|
||||||
"KanbanCard.delete": "Delete",
|
"KanbanCard.delete": "Delete",
|
||||||
"KanbanCard.duplicate": "Duplicate",
|
"KanbanCard.duplicate": "Duplicate",
|
||||||
"KanbanCard.untitled": "Untitled",
|
"KanbanCard.untitled": "Untitled",
|
||||||
|
@ -52,6 +54,7 @@
|
||||||
"PropertyType.Checkbox": "Checkbox",
|
"PropertyType.Checkbox": "Checkbox",
|
||||||
"PropertyType.CreatedBy": "Created By",
|
"PropertyType.CreatedBy": "Created By",
|
||||||
"PropertyType.CreatedTime": "Created Time",
|
"PropertyType.CreatedTime": "Created Time",
|
||||||
|
"PropertyType.Delete": "Delete",
|
||||||
"PropertyType.Email": "Email",
|
"PropertyType.Email": "Email",
|
||||||
"PropertyType.File": "File or Media",
|
"PropertyType.File": "File or Media",
|
||||||
"PropertyType.MultiSelect": "Multi Select",
|
"PropertyType.MultiSelect": "Multi Select",
|
||||||
|
@ -123,9 +126,14 @@
|
||||||
"TableHeaderMenu.sort-ascending": "Sort ascending",
|
"TableHeaderMenu.sort-ascending": "Sort ascending",
|
||||||
"TableHeaderMenu.sort-descending": "Sort descending",
|
"TableHeaderMenu.sort-descending": "Sort descending",
|
||||||
"TableRow.open": "Open",
|
"TableRow.open": "Open",
|
||||||
|
"View.AddView": "Add View",
|
||||||
|
"View.Board": "Board",
|
||||||
|
"View.DeleteView": "Delete View",
|
||||||
|
"View.DuplicateView": "Duplicate View",
|
||||||
"View.NewBoardTitle": "Board view",
|
"View.NewBoardTitle": "Board view",
|
||||||
"View.NewGalleryTitle": "Gallery view",
|
"View.NewGalleryTitle": "Gallery view",
|
||||||
"View.NewTableTitle": "Table view",
|
"View.NewTableTitle": "Table view",
|
||||||
|
"View.Table": "Table",
|
||||||
"ViewHeader.add-template": "+ New template",
|
"ViewHeader.add-template": "+ New template",
|
||||||
"ViewHeader.delete-template": "Delete",
|
"ViewHeader.delete-template": "Delete",
|
||||||
"ViewHeader.edit-template": "Edit",
|
"ViewHeader.edit-template": "Edit",
|
||||||
|
|
|
@ -49,6 +49,11 @@ const PropertyMenu = React.memo((props: Props) => {
|
||||||
const nameTextbox = useRef<HTMLInputElement>(null)
|
const nameTextbox = useRef<HTMLInputElement>(null)
|
||||||
const [name, setName] = useState(props.propertyName)
|
const [name, setName] = useState(props.propertyName)
|
||||||
|
|
||||||
|
const deleteText = intl.formatMessage({
|
||||||
|
id: 'PropertyType.Delete',
|
||||||
|
defaultMessage: 'Delete',
|
||||||
|
})
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
nameTextbox.current?.focus()
|
nameTextbox.current?.focus()
|
||||||
nameTextbox.current?.setSelectionRange(0, name.length)
|
nameTextbox.current?.setSelectionRange(0, name.length)
|
||||||
|
@ -85,38 +90,38 @@ const PropertyMenu = React.memo((props: Props) => {
|
||||||
|
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='text'
|
id='text'
|
||||||
name='Text'
|
name={typeDisplayName(intl, 'text')}
|
||||||
onClick={() => props.onTypeChanged('text')}
|
onClick={() => props.onTypeChanged('text')}
|
||||||
/>
|
/>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='number'
|
id='number'
|
||||||
name='Number'
|
name={typeDisplayName(intl, 'number')}
|
||||||
onClick={() => props.onTypeChanged('number')}
|
onClick={() => props.onTypeChanged('number')}
|
||||||
/>
|
/>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='email'
|
id='email'
|
||||||
name='Email'
|
name={typeDisplayName(intl, 'email')}
|
||||||
onClick={() => props.onTypeChanged('email')}
|
onClick={() => props.onTypeChanged('email')}
|
||||||
/>
|
/>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='select'
|
id='select'
|
||||||
name='Select'
|
name={typeDisplayName(intl, 'select')}
|
||||||
onClick={() => props.onTypeChanged('select')}
|
onClick={() => props.onTypeChanged('select')}
|
||||||
/>
|
/>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='createdTime'
|
id='createdTime'
|
||||||
name='Created Time'
|
name={typeDisplayName(intl, 'createdTime')}
|
||||||
onClick={() => props.onTypeChanged('createdTime')}
|
onClick={() => props.onTypeChanged('createdTime')}
|
||||||
/>
|
/>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='updatedTime'
|
id='updatedTime'
|
||||||
name='Updated Time'
|
name={typeDisplayName(intl, 'updatedTime')}
|
||||||
onClick={() => props.onTypeChanged('updatedTime')}
|
onClick={() => props.onTypeChanged('updatedTime')}
|
||||||
/>
|
/>
|
||||||
</Menu.SubMenu>
|
</Menu.SubMenu>
|
||||||
<Menu.Text
|
<Menu.Text
|
||||||
id='delete'
|
id='delete'
|
||||||
name='Delete'
|
name={deleteText}
|
||||||
onClick={() => props.onDelete(props.propertyId)}
|
onClick={() => props.onDelete(props.propertyId)}
|
||||||
/>
|
/>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|
Loading…
Reference in a new issue