Browse Source

Use vaultFilter cipher type (#1701)

pull/1702/head
Robyn MacCallum 4 years ago committed by GitHub
parent
commit
681ace4b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/app/modules/vault/modules/individual-vault/individual-vault.component.ts

5
src/app/modules/vault/modules/individual-vault/individual-vault.component.ts

@ -58,7 +58,6 @@ export class IndividualVaultComponent implements OnInit, OnDestroy { @@ -58,7 +58,6 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
updateKeyModalRef: ViewContainerRef;
favorites = false;
type: CipherType = null;
folderId: string = null;
collectionId: string = null;
organizationId: string = null;
@ -327,7 +326,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy { @@ -327,7 +326,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
async addCipher() {
const component = await this.editCipher(null);
component.type = this.type;
component.type = this.activeFilter.cipherType;
component.folderId = this.folderId === "none" ? null : this.folderId;
if (this.activeFilter.selectedCollectionId != null) {
const collection = this.filterComponent.collections.fullList.filter(
@ -399,7 +398,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy { @@ -399,7 +398,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
if (queryParams == null) {
queryParams = {
favorites: this.favorites ? true : null,
type: this.type,
type: this.activeFilter.cipherType,
folderId: this.folderId,
collectionId: this.collectionId,
deleted: this.deleted ? true : null,

Loading…
Cancel
Save