mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19: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
|
@ -57,7 +57,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
let filteredUsers = A([]);
|
||||
users.forEach(user => {
|
||||
let m = members.findBy('userId', user.get('id'));
|
||||
if (is.undefined(m)) filteredUsers.pushObject(user);
|
||||
if (_.isUndefined(m)) filteredUsers.pushObject(user);
|
||||
});
|
||||
|
||||
this.set('users', filteredUsers);
|
||||
|
@ -75,7 +75,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
|
||||
let newGroup = this.get('newGroup');
|
||||
|
||||
if (is.empty(newGroup.name)) {
|
||||
if (_.isEmpty(newGroup.name)) {
|
||||
$('#new-group-name')
|
||||
.addClass('is-invalid')
|
||||
.focus();
|
||||
|
@ -108,7 +108,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
let group = this.get('groups').findBy('id', deleteGroup.id);
|
||||
|
||||
if (
|
||||
is.empty(deleteGroup.name) ||
|
||||
_.isEmpty(deleteGroup.name) ||
|
||||
group.get('name') !== deleteGroup.name
|
||||
) {
|
||||
$('#delete-group-name')
|
||||
|
@ -141,7 +141,7 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
|
||||
let group = this.get('editGroup');
|
||||
|
||||
if (is.empty(group.get('name'))) {
|
||||
if (_.isEmpty(group.get('name'))) {
|
||||
$('#edit-group-name')
|
||||
.addClass('is-invalid')
|
||||
.focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue