From 0ecdd46a4750f531d58119f35f1b27a1edb66b96 Mon Sep 17 00:00:00 2001 From: Jordan Aasen <166539328+jaasen-livefront@users.noreply.github.com> Date: Sat, 28 Sep 2024 00:30:20 -0700 Subject: [PATCH] [PM-11927] - fix file send popout copy and logic (#11297) * fix copy and logic * update copy --- apps/browser/src/_locales/en/messages.json | 2 +- .../send-file-popout-dialog-container.component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/_locales/en/messages.json b/apps/browser/src/_locales/en/messages.json index f7db6d78f2..5203edf0a4 100644 --- a/apps/browser/src/_locales/en/messages.json +++ b/apps/browser/src/_locales/en/messages.json @@ -2509,7 +2509,7 @@ "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendFilePopoutDialogDesc": { - "message": "To create a file Send, you need to pop out te extension to a new window.", + "message": "To create a file Send, you need to pop out the extension to a new window.", "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." }, "sendLinuxChromiumFileWarning": { diff --git a/apps/browser/src/tools/popup/send-v2/send-file-popout-dialog/send-file-popout-dialog-container.component.ts b/apps/browser/src/tools/popup/send-v2/send-file-popout-dialog/send-file-popout-dialog-container.component.ts index 33f121431f..d3d481063e 100644 --- a/apps/browser/src/tools/popup/send-v2/send-file-popout-dialog/send-file-popout-dialog-container.component.ts +++ b/apps/browser/src/tools/popup/send-v2/send-file-popout-dialog/send-file-popout-dialog-container.component.ts @@ -2,6 +2,7 @@ import { CommonModule } from "@angular/common"; import { Component, Input, OnInit } from "@angular/core"; import { JslibModule } from "@bitwarden/angular/jslib.module"; +import { SendType } from "@bitwarden/common/tools/send/enums/send-type"; import { DialogService } from "@bitwarden/components"; import { SendFormConfig } from "@bitwarden/send-ui"; @@ -24,7 +25,11 @@ export class SendFilePopoutDialogContainerComponent implements OnInit { ) {} ngOnInit() { - if (this.config.mode === "add" && this.filePopoutUtilsService.showFilePopoutMessage(window)) { + if ( + this.config.sendType === SendType.File && + this.config.mode === "add" && + this.filePopoutUtilsService.showFilePopoutMessage(window) + ) { this.dialogService.open(SendFilePopoutDialogComponent); } }