1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

Replaced underscore.js & is.js with lodash.js

This commit is contained in:
Harvey Kandola 2019-03-03 13:10:04 +00:00
parent df8e843bf5
commit 566807bc14
93 changed files with 17379 additions and 2056 deletions

View file

@ -15,6 +15,7 @@ import { computed, set } from '@ember/object';
import { isPresent, isEqual, isEmpty } from '@ember/utils';
import { inject as service } from '@ember/service';
import AuthProvider from '../../mixins/auth';
import stringUtil from '../../utils/string';
import Component from '@ember/component';
export default Component.extend(AuthProvider, {
@ -23,7 +24,7 @@ export default Component.extend(AuthProvider, {
hasLastnameError: empty('model.lastname'),
hasEmailError: computed('model.email', function() {
let email = this.get('model.email');
return isEmpty(email) || is.not.email(email);
return isEmpty(email) || !stringUtil.isEmail(email);
}),
hasPasswordError: computed('passwordError', 'password.password', {
get() {