1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-07 19:07:45 +01:00

add field type to show correct new cipher popup form (#12433)

Co-authored-by: Evan Bassler <evanbassler@EvanBasslersMBP.attlocal.net>
This commit is contained in:
Evan Bassler 2025-01-02 16:17:47 -06:00 committed by GitHub
parent 10c8a2101a
commit 9807b33181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2275,6 +2275,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
card,
identity,
sender,
addNewCipherType,
}: CurrentAddNewItemData) {
const cipherView: CipherView = this.buildNewVaultItemCipherView({
login,
@ -2294,7 +2295,10 @@ export class OverlayBackground implements OverlayBackgroundInterface {
collectionIds: cipherView.collectionIds,
});
await this.openAddEditVaultItemPopout(sender.tab, { cipherId: cipherView.id });
await this.openAddEditVaultItemPopout(sender.tab, {
cipherId: cipherView.id,
cipherType: addNewCipherType,
});
await BrowserApi.sendMessage("inlineAutofillMenuRefreshAddEditCipher");
} catch (error) {
this.logService.error("Error building cipher and opening add/edit vault item popout", error);