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
@@ -2,6 +2,9 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
  ## [Unreleased]
5
+ ## [0.1.0-beta.1] - 2023-10-04
6
+ ### Fixed
7
+ * Login with "Enter" key
5
8
 
6
9
  ## [0.1.0-beta.0] - 2019-04-25
7
10
  ### Fixed
@@ -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}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-flexberry-account",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.1",
4
4
  "description": "User account management addon.",
5
5
  "directories": {
6
6
  "doc": "doc",