This commit is contained in:
Chen-I Lim 2021-03-09 13:44:02 -08:00
parent 6c80a681e2
commit cb2814f364
2 changed files with 3 additions and 9 deletions

View File

@ -24,13 +24,8 @@
"CommentsList.send": "Send", "CommentsList.send": "Send",
"ContentBlock.Delete": "Delete", "ContentBlock.Delete": "Delete",
"ContentBlock.DeleteAction": "delete", "ContentBlock.DeleteAction": "delete",
"ContentBlock.Text": "Text", "ContentBlock.addElement": "add {type}",
"ContentBlock.addDivider": "add divider",
"ContentBlock.addImage": "add image", "ContentBlock.addImage": "add image",
"ContentBlock.addText": "add text",
"ContentBlock.divider": "Divider",
"ContentBlock.editCardText": "edit card text",
"ContentBlock.editText": "Edit text...",
"ContentBlock.insertAbove": "Insert above", "ContentBlock.insertAbove": "Insert above",
"ContentBlock.moveDown": "Move down", "ContentBlock.moveDown": "Move down",
"ContentBlock.moveUp": "Move up", "ContentBlock.moveUp": "Move up",
@ -98,7 +93,6 @@
"Sidebar.settings": "Settings", "Sidebar.settings": "Settings",
"Sidebar.spanish": "Spanish", "Sidebar.spanish": "Spanish",
"Sidebar.template-from-board": "New template from board", "Sidebar.template-from-board": "New template from board",
"Sidebar.title": "Boards",
"Sidebar.untitled": "Untitled", "Sidebar.untitled": "Untitled",
"Sidebar.untitled-board": "(Untitled Board)", "Sidebar.untitled-board": "(Untitled Board)",
"Sidebar.untitled-view": "(Untitled View)", "Sidebar.untitled-view": "(Untitled View)",

View File

@ -110,7 +110,7 @@ class ContentBlock extends React.PureComponent<Props> {
onClick={() => { onClick={() => {
Utils.selectLocalFile((file) => { Utils.selectLocalFile((file) => {
mutator.performAsUndoGroup(async () => { mutator.performAsUndoGroup(async () => {
const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type, string}'}, {type: contentRegistry.typeDisplayText(intl, type)}) const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type}'}, {type: contentRegistry.typeDisplayText(intl, type)})
const newBlock = await mutator.createImageBlock(card, file, description) const newBlock = await mutator.createImageBlock(card, file, description)
if (newBlock) { if (newBlock) {
const contentOrder = contents.map((o) => o.id) const contentOrder = contents.map((o) => o.id)
@ -137,7 +137,7 @@ class ContentBlock extends React.PureComponent<Props> {
const contentOrder = contents.map((o) => o.id) const contentOrder = contents.map((o) => o.id)
contentOrder.splice(index, 0, newBlock.id) contentOrder.splice(index, 0, newBlock.id)
mutator.performAsUndoGroup(async () => { mutator.performAsUndoGroup(async () => {
const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type, string}'}, {type: contentRegistry.typeDisplayText(intl, type)}) const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type}'}, {type: contentRegistry.typeDisplayText(intl, type)})
await mutator.insertBlock(newBlock, description) await mutator.insertBlock(newBlock, description)
await mutator.changeCardContentOrder(card, contentOrder, description) await mutator.changeCardContentOrder(card, contentOrder, description)
}) })