add "success" message when credential was validated, #100
This commit is contained in:
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Erfolgreich bestätigt",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Confirmed successfully",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Confirmado con éxito",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,6 +195,10 @@
|
|||||||
"defaultMessage": "No contacts match ''{query}''",
|
"defaultMessage": "No contacts match ''{query}''",
|
||||||
"description": "Shown in ContactsView when search returned no results"
|
"description": "Shown in ContactsView when search returned no results"
|
||||||
},
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated."
|
||||||
|
},
|
||||||
"credential_email_prompt": {
|
"credential_email_prompt": {
|
||||||
"defaultMessage": "Your registration email",
|
"defaultMessage": "Your registration email",
|
||||||
"description": "Placeholder for entering email"
|
"description": "Placeholder for entering email"
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Confirmé avec succès",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "성공적으로 확인됨",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Confirmat cu succes",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "Подтверждено успешно",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "確認成功",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,5 +1444,12 @@
|
|||||||
"description": "Placeholer for phone or email",
|
"description": "Placeholer for phone or email",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
"obsolete": false
|
"obsolete": false
|
||||||
|
},
|
||||||
|
"cred_confirmed_successfully": {
|
||||||
|
"translation": "确认成功",
|
||||||
|
"defaultMessage": "Confirmed successfully",
|
||||||
|
"description": "Message explaining that the credential was successfully validated.",
|
||||||
|
"missing": false,
|
||||||
|
"obsolete": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -73,6 +73,11 @@ const messages = defineMessages({
|
|||||||
id: 'menu_item_video_call',
|
id: 'menu_item_video_call',
|
||||||
defaultMessage: 'Video call',
|
defaultMessage: 'Video call',
|
||||||
description: 'Start video call'
|
description: 'Start video call'
|
||||||
|
},
|
||||||
|
cred_confirmed_successfully: {
|
||||||
|
id: 'cred_confirmed_successfully',
|
||||||
|
defaultMessage: 'Confirmed successfully',
|
||||||
|
description: 'Message explaining that the credential was successfully validated.'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1653,7 +1658,8 @@ class TinodeWeb extends React.Component {
|
|||||||
if (this.tinode.isAuthenticated()) {
|
if (this.tinode.isAuthenticated()) {
|
||||||
const me = this.tinode.getMeTopic();
|
const me = this.tinode.getMeTopic();
|
||||||
me.setMeta({cred: {meth: cred, resp: code}})
|
me.setMeta({cred: {meth: cred, resp: code}})
|
||||||
.then(() => {
|
.then(_ => {
|
||||||
|
this.handleError(this.props.intl.formatMessage(cred_confirmed_successfully), 'info');
|
||||||
HashNavigation.navigateTo('');
|
HashNavigation.navigateTo('');
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class ValidationView extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
// Submit code audomatically if it's received from the parent.
|
// Submit code automatically if it's received from the parent.
|
||||||
if (this.state.codeReceived && this.state.code != prevState.code) {
|
if (this.state.codeReceived && this.state.code != prevState.code) {
|
||||||
this.props.onSubmit(this.props.credMethod, this.state.code.trim());
|
this.props.onSubmit(this.props.credMethod, this.state.code.trim());
|
||||||
}
|
}
|
||||||
|
|||||||
+18
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user