mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00: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:
@@ -2275,6 +2275,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
|||||||
card,
|
card,
|
||||||
identity,
|
identity,
|
||||||
sender,
|
sender,
|
||||||
|
addNewCipherType,
|
||||||
}: CurrentAddNewItemData) {
|
}: CurrentAddNewItemData) {
|
||||||
const cipherView: CipherView = this.buildNewVaultItemCipherView({
|
const cipherView: CipherView = this.buildNewVaultItemCipherView({
|
||||||
login,
|
login,
|
||||||
@@ -2294,7 +2295,10 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
|||||||
collectionIds: cipherView.collectionIds,
|
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");
|
await BrowserApi.sendMessage("inlineAutofillMenuRefreshAddEditCipher");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logService.error("Error building cipher and opening add/edit vault item popout", error);
|
this.logService.error("Error building cipher and opening add/edit vault item popout", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user