1
0
mirror of https://github.com/bitwarden/web synced 2025-12-14 15:23:14 +00:00

Fix modal-body div missing #583

This commit is contained in:
Chad Scharf
2020-07-27 14:13:36 -04:00
parent 6e3edd75eb
commit 38f0cae82d
4 changed files with 7 additions and 7 deletions

1
jslib

Submodule jslib deleted from 7fa5178bff

1
jslib Symbolic link
View File

@@ -0,0 +1 @@
../jslib

View File

@@ -85,7 +85,7 @@ export class CollectionsComponent implements OnInit {
} }
loadMore() { loadMore() {
if (this.collections.length <= this.pageSize) { if (!this.collections || this.collections.length <= this.pageSize) {
return; return;
} }
const pagedLength = this.pagedCollections.length; const pagedLength = this.pagedCollections.length;
@@ -185,7 +185,7 @@ export class CollectionsComponent implements OnInit {
if (searching && this.didScroll) { if (searching && this.didScroll) {
this.resetPaging(); this.resetPaging();
} }
return !searching && this.collections.length > this.pageSize; return !searching && this.collections && this.collections.length > this.pageSize;
} }
private removeCollection(collection: CollectionView) { private removeCollection(collection: CollectionView) {

View File

@@ -81,7 +81,7 @@ export class GroupsComponent implements OnInit {
} }
loadMore() { loadMore() {
if (this.groups.length <= this.pageSize) { if (!this.groups || this.groups.length <= this.pageSize) {
return; return;
} }
const pagedLength = this.pagedGroups.length; const pagedLength = this.pagedGroups.length;
@@ -179,7 +179,7 @@ export class GroupsComponent implements OnInit {
if (searching && this.didScroll) { if (searching && this.didScroll) {
this.resetPaging(); this.resetPaging();
} }
return !searching && this.groups.length > this.pageSize; return !searching && this.groups && this.groups.length > this.pageSize;
} }
private removeGroup(group: GroupResponse) { private removeGroup(group: GroupResponse) {

View File

@@ -129,7 +129,7 @@ export class PeopleComponent implements OnInit {
} }
loadMore() { loadMore() {
if (this.users.length <= this.pageSize) { if (!this.users || this.users.length <= this.pageSize) {
return; return;
} }
const pagedLength = this.pagedUsers.length; const pagedLength = this.pagedUsers.length;
@@ -331,7 +331,7 @@ export class PeopleComponent implements OnInit {
if (searching && this.didScroll) { if (searching && this.didScroll) {
this.resetPaging(); this.resetPaging();
} }
return !searching && this.users.length > this.pageSize; return !searching && this.users && this.users.length > this.pageSize;
} }
private async doConfirmation(user: OrganizationUserUserDetailsResponse) { private async doConfirmation(user: OrganizationUserUserDetailsResponse) {