ember-flexberry-account 0.1.0-beta.0 → 0.1.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -103,8 +103,7 @@ export default Ember.Component.extend({
|
|
103
103
|
if (Ember.isPresent(this.get('onFail'))) {
|
104
104
|
this.get('onFail')(reason);
|
105
105
|
}
|
106
|
-
}
|
107
|
-
);
|
106
|
+
});
|
108
107
|
},
|
109
108
|
|
110
109
|
/**
|
@@ -123,7 +122,13 @@ export default Ember.Component.extend({
|
|
123
122
|
*/
|
124
123
|
pwdReset: function() {
|
125
124
|
Ember.getOwner(this).lookup('router:main').transitionTo('pwd-reset');
|
126
|
-
}
|
125
|
+
},
|
126
|
+
|
127
|
+
onKeyPress(e) {
|
128
|
+
if (e.keyCode === 13) {
|
129
|
+
this.send('login');
|
130
|
+
}
|
131
|
+
},
|
127
132
|
},
|
128
133
|
|
129
134
|
/**
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="username-div">
|
2
2
|
{{t "components.login.username-label"}}<br/>
|
3
|
-
{{input type="text" value=username}}
|
3
|
+
{{input type="text" keyPress=(action "onKeyPress") value=username}}
|
4
4
|
</div>
|
5
5
|
<div class="password-div">
|
6
6
|
{{t "components.login.password-label"}}<br/>
|
7
|
-
{{input type="password" value=password}}
|
7
|
+
{{input type="password" keyPress=(action "onKeyPress") value=password}}
|
8
8
|
</div>
|
9
9
|
<div class="login-div">
|
10
10
|
{{t "components.login.remember-label"}} {{input type="checkbox" checked=remember}}
|