1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-08 05:47:50 +02:00

[PM-11927] - fix file send popout copy and logic (#11297)

* fix copy and logic

* update copy
This commit is contained in:
Jordan Aasen 2024-09-28 00:30:20 -07:00 committed by GitHub
parent 65fb967a19
commit 0ecdd46a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -2509,7 +2509,7 @@
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated." "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
}, },
"sendFilePopoutDialogDesc": { "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." "description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
}, },
"sendLinuxChromiumFileWarning": { "sendLinuxChromiumFileWarning": {

View File

@ -2,6 +2,7 @@ import { CommonModule } from "@angular/common";
import { Component, Input, OnInit } from "@angular/core"; import { Component, Input, OnInit } from "@angular/core";
import { JslibModule } from "@bitwarden/angular/jslib.module"; import { JslibModule } from "@bitwarden/angular/jslib.module";
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
import { DialogService } from "@bitwarden/components"; import { DialogService } from "@bitwarden/components";
import { SendFormConfig } from "@bitwarden/send-ui"; import { SendFormConfig } from "@bitwarden/send-ui";
@ -24,7 +25,11 @@ export class SendFilePopoutDialogContainerComponent implements OnInit {
) {} ) {}
ngOnInit() { 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); this.dialogService.open(SendFilePopoutDialogComponent);
} }
} }