ember-flexberry-account 0.1.0-beta.2 → 0.1.0-beta.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,6 +69,15 @@ export default Ember.Component.extend({
69
69
  */
70
70
  remember: true,
71
71
 
72
+ /**
73
+ Flag is used to hide remember me field.
74
+
75
+ @property showRemember
76
+ @type Boolean
77
+ @default false
78
+ */
79
+ showRemember: false,
80
+
72
81
  /**
73
82
  This computed field shows whether login is allowed or not.
74
83
 
@@ -16,12 +16,14 @@
16
16
  value=password
17
17
  placeholder="Введите пароль"}}
18
18
  </div>
19
- <div class="remember-div">
20
- <div class="ui checkbox">
21
- {{input type="checkbox" id="remember" checked=remember}}
22
- <label for="remember">{{t "components.login.remember-label"}}</label>
19
+ {{#if showRemember}}
20
+ <div class="remember-div">
21
+ <div class="ui checkbox">
22
+ {{input type="checkbox" id="remember" checked=remember}}
23
+ <label for="remember">{{t "components.login.remember-label"}}</label>
24
+ </div>
23
25
  </div>
24
- </div>
26
+ {{/if}}
25
27
  <div class="login-div">
26
28
  <button
27
29
  class="ui login-button button"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-flexberry-account",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "User account management addon.",
5
5
  "directories": {
6
6
  "doc": "doc",