MM-13439 change close edit profile window text to Cancel (#2520)

This commit is contained in:
Daniel Mills 2019-01-28 09:22:13 -05:00 committed by Harrison Healey
parent 860ae8ae2b
commit aea4b096e4
3 changed files with 14 additions and 0 deletions

View file

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

View file

@ -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);

View file

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