Fix interactive message submit button by adding a default when none is defined (#5551)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
b7fcda3956
commit
c1e5582cc0
2 changed files with 4 additions and 1 deletions
|
|
@ -75,6 +75,8 @@ export default class InteractiveDialogController extends PureComponent {
|
|||
}
|
||||
|
||||
showInteractiveDialogScreen = (dialog) => {
|
||||
const {formatMessage} = this.context.intl;
|
||||
|
||||
const options = {
|
||||
topBar: {
|
||||
leftButtons: [{
|
||||
|
|
@ -84,7 +86,7 @@ export default class InteractiveDialogController extends PureComponent {
|
|||
rightButtons: [{
|
||||
id: 'submit-dialog',
|
||||
showAsAction: 'always',
|
||||
text: dialog.submit_label,
|
||||
text: dialog.submit_label || formatMessage({id: 'mobile.interactive_dialog.defaultSubmit', defaultMessage: 'Submit'}),
|
||||
}],
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -361,6 +361,7 @@
|
|||
"mobile.gallery.title": "{index} of {total}",
|
||||
"mobile.general.error.title": "Error",
|
||||
"mobile.help.title": "Help",
|
||||
"mobile.interactive_dialog.defaultSubmit": "Submit",
|
||||
"mobile.intro_messages.default_message": "This is the first channel teammates see when they sign up - use it for posting updates everyone needs to know.",
|
||||
"mobile.intro_messages.default_welcome": "Welcome to {name}!",
|
||||
"mobile.intro_messages.DM": "This is the start of your direct message history with {teammate}. Direct messages and files shared here are not shown to people outside this area.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue