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:
Daniel Espino García 2021-08-17 13:12:33 +02:00 committed by GitHub
parent b7fcda3956
commit c1e5582cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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'}),
}],
},
};

View file

@ -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.",