diff --git a/src/app/vault/add-edit.component.ts b/src/app/vault/add-edit.component.ts index a8155eff7..ccc6b437c 100644 --- a/src/app/vault/add-edit.component.ts +++ b/src/app/vault/add-edit.component.ts @@ -22,6 +22,7 @@ import { UserService } from 'jslib/abstractions/user.service'; import { BroadcasterService } from 'jslib/angular/services/broadcaster.service'; import { AddEditComponent as BaseAddEditComponent } from 'jslib/angular/components/add-edit.component'; +import { CipherType } from 'jslib/enums/cipherType'; const BroadcasterSubscriptionId = 'AddEditComponent'; @@ -44,9 +45,11 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges, } async ngOnInit() { - // @override by Cozy : remove the notes from the possible types of ciphers - this.typeOptions.pop(); - // end override + // Cozy Customization, Remove notes and profiles from available types + // /* + const ignoredTypes = [CipherType.Identity, CipherType.SecureNote]; + this.typeOptions = this.typeOptions.filter(type => !ignoredTypes.includes(type.value)); + // */ this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => { this.ngZone.run(() => { switch (message.command) { diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index 9e8fe45bc..a19685fcc 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -48,10 +48,13 @@