1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

aot compilation fixes

This commit is contained in:
Kyle Spearrin 2018-07-09 17:07:13 -04:00
parent 637120d0c5
commit a45c77bda9
4 changed files with 26 additions and 2 deletions

View File

@ -39,4 +39,16 @@ export class CollectionsComponent implements OnInit {
this.collections = await this.collectionService.decryptMany(collections); this.collections = await this.collectionService.decryptMany(collections);
this.loading = false; this.loading = false;
} }
edit(collection: CollectionView) {
//
}
add() {
this.edit(null);
}
async delete(collection: CollectionView) {
//
}
} }

View File

@ -18,7 +18,7 @@
<label class="sr-only" for="search">{{'search' | i18n}}</label> <label class="sr-only" for="search">{{'search' | i18n}}</label>
<input type="search" class="form-control form-control-sm" id="search" placeholder="{{'search' | i18n}}" [(ngModel)]="searchText"> <input type="search" class="form-control form-control-sm" id="search" placeholder="{{'search' | i18n}}" [(ngModel)]="searchText">
</div> </div>
<button type="button" class="btn btn-sm btn-outline-primary ml-3" (click)="add()"> <button type="button" class="btn btn-sm btn-outline-primary ml-3" (click)="invite()">
<i class="fa fa-plus fa-fw"></i> <i class="fa fa-plus fa-fw"></i>
{{'inviteUser' | i18n}} {{'inviteUser' | i18n}}
</button> </button>

View File

@ -43,4 +43,16 @@ export class PeopleComponent implements OnInit {
this.users = users; this.users = users;
this.loading = false; this.loading = false;
} }
edit(user: OrganizationUserUserDetailsResponse) {
//
}
invite() {
//
}
async remove(user: OrganizationUserUserDetailsResponse) {
//
}
} }

View File

@ -91,7 +91,7 @@ export class ShareComponent implements OnInit, OnDestroy {
(c as any).checked = select == null ? !(c as any).checked : select; (c as any).checked = select == null ? !(c as any).checked : select;
} }
selectAll(select: false) { selectAll(select: boolean) {
const collections = select ? this.collections : this.writeableCollections; const collections = select ? this.collections : this.writeableCollections;
collections.forEach((c) => this.check(c, select)); collections.forEach((c) => this.check(c, select));
} }