UNPKG

rm-components

Version:

The default blueprint for ember-cli addons.

19 lines (15 loc) 420 B
import Ember from 'ember'; import layout from './template'; export default Ember.Component.extend({ layout, matchingPassword: Ember.computed('password', 'passwordConfirmation', function() { return this.get('password') === this.get('passwordConfirmation'); }), actions: { resetPassword() { if (this.get('matchingPassword')) { return this.attrs.clickResetPassword(); } } } });