Skip to content

Commit

Permalink
[PM-11927] - fix file send popout copy and logic (#11297)
Browse files Browse the repository at this point in the history
* fix copy and logic

* update copy
  • Loading branch information
jaasen-livefront authored Sep 28, 2024
1 parent 65fb967 commit 0ecdd46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/browser/src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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);
}
}
Expand Down

0 comments on commit 0ecdd46

Please sign in to comment.