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:
parent
df8e843bf5
commit
566807bc14
93 changed files with 17379 additions and 2056 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue