1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Move comment to JSDoc

This commit is contained in:
Nick Krantz
2024-10-04 09:51:20 -05:00
parent 09d7fe2c75
commit 1edc24e7b5

View File

@@ -787,13 +787,17 @@ export class VaultComponent implements OnInit, OnDestroy {
await this.openVaultItemDialog("form", cipherFormConfig);
}
/**
* Edit the given cipher
* @param cipherView - The cipher to be edited
* @param cloneCipher - `true` when the cipher should be cloned.
* Used in place of the `additionalComponentParameters`, as
* the `editCipherIdV2` method has a differing implementation.
* @param defaultComponentParameters - A method that takes in an instance of
* the `AddEditComponent` to edit methods directly.
*/
async editCipher(
cipher: CipherView,
/**
* True when the cipher should be cloned
* Used in place of the `additionalComponentParameters` above, as
* the `editCipherIdV2` method has a differing implementation.
*/
cloneCipher: boolean,
additionalComponentParameters?: (comp: AddEditComponent) => void,
) {