MM-13439 change close edit profile window text to Cancel (#2520)
This commit is contained in:
parent
860ae8ae2b
commit
aea4b096e4
3 changed files with 14 additions and 0 deletions
|
|
@ -34,6 +34,12 @@ exports[`edit_profile should match snapshot 1`] = `
|
|||
"calls": Array [
|
||||
Array [
|
||||
Object {
|
||||
"leftButtons": Array [
|
||||
Object {
|
||||
"id": "close-settings",
|
||||
"title": undefined,
|
||||
},
|
||||
],
|
||||
"rightButtons": Array [
|
||||
Object {
|
||||
"disabled": true,
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ export default class EditProfile extends PureComponent {
|
|||
intl: intlShape,
|
||||
};
|
||||
|
||||
leftButton = {
|
||||
id: 'close-settings',
|
||||
};
|
||||
|
||||
rightButton = {
|
||||
id: 'update-profile',
|
||||
disabled: true,
|
||||
|
|
@ -83,10 +87,13 @@ export default class EditProfile extends PureComponent {
|
|||
|
||||
const {email, first_name: firstName, last_name: lastName, nickname, position, username} = props.currentUser;
|
||||
const buttons = {
|
||||
leftButtons: [this.leftButton],
|
||||
rightButtons: [this.rightButton],
|
||||
};
|
||||
|
||||
this.leftButton.title = context.intl.formatMessage({id: 'mobile.account.settings.cancel', defaultMessage: 'Cancel'});
|
||||
this.rightButton.title = context.intl.formatMessage({id: 'mobile.account.settings.save', defaultMessage: 'Save'});
|
||||
|
||||
props.navigator.setOnNavigatorEvent(this.onNavigatorEvent);
|
||||
props.navigator.setButtons(buttons);
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@
|
|||
"mobile.account_notifications.threads_start": "Threads that I start",
|
||||
"mobile.account_notifications.threads_start_participate": "Threads that I start or participate in",
|
||||
"mobile.account.settings.save": "Save",
|
||||
"mobile.account.settings.cancel": "Cancel",
|
||||
"mobile.action_menu.select": "Select an option",
|
||||
"mobile.action_menu.submitted": "Submitted",
|
||||
"mobile.advanced_settings.clockDisplay": "Clock display",
|
||||
|
|
|
|||
Loading…
Reference in a new issue