mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
cosmetic changes + fix react warning for map fn
This commit is contained in:
parent
828d24044b
commit
212038ae43
@ -73,6 +73,7 @@ let AccountSettings = React.createClass({
|
|||||||
getFormDataProfile(){
|
getFormDataProfile(){
|
||||||
return {'email': this.state.currentUser.email};
|
return {'email': this.state.currentUser.email};
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let content = <img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />;
|
let content = <img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />;
|
||||||
let profile = null;
|
let profile = null;
|
||||||
@ -231,7 +232,6 @@ let LoanContractSettings = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title="Loan Contract Settings"
|
title="Loan Contract Settings"
|
||||||
@ -318,26 +318,30 @@ let APISettings = React.createClass({
|
|||||||
onChange(state) {
|
onChange(state) {
|
||||||
this.setState(state);
|
this.setState(state);
|
||||||
},
|
},
|
||||||
handleCreateSuccess: function(){
|
|
||||||
|
handleCreateSuccess() {
|
||||||
ApplicationActions.fetchApplication();
|
ApplicationActions.fetchApplication();
|
||||||
let notification = new GlobalNotificationModel(getLangText('Application successfully created'), 'success', 5000);
|
let notification = new GlobalNotificationModel(getLangText('Application successfully created'), 'success', 5000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleTokenRefresh: function(event){
|
handleTokenRefresh(event) {
|
||||||
let applicationName = event.target.getAttribute('data-id');
|
let applicationName = event.target.getAttribute('data-id');
|
||||||
ApplicationActions.refreshApplicationToken(applicationName);
|
ApplicationActions.refreshApplicationToken(applicationName);
|
||||||
|
|
||||||
let notification = new GlobalNotificationModel(getLangText('Token refreshed'), 'success', 2000);
|
let notification = new GlobalNotificationModel(getLangText('Token refreshed'), 'success', 2000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let content = <img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />;
|
let content = <img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />;
|
||||||
if (this.state.applications.length > -1) {
|
if (this.state.applications.length > -1) {
|
||||||
content = this.state.applications.map(function(app) {
|
content = this.state.applications.map(function(app, i) {
|
||||||
return (
|
return (
|
||||||
<Property
|
<Property
|
||||||
name={app.name}
|
name={app.name}
|
||||||
label={app.name}>
|
label={app.name}
|
||||||
|
key={i}>
|
||||||
<div className="row-same-height">
|
<div className="row-same-height">
|
||||||
<div className="no-padding col-xs-6 col-sm-10 col-xs-height col-middle">
|
<div className="no-padding col-xs-6 col-sm-10 col-xs-height col-middle">
|
||||||
{'Bearer ' + app.bearer_token.token}
|
{'Bearer ' + app.bearer_token.token}
|
||||||
|
Loading…
Reference in New Issue
Block a user