diff --git a/apps/web/src/app/tools/send/new-send/new-send-dropdown.component.ts b/apps/web/src/app/tools/send/new-send/new-send-dropdown.component.ts
index 64ada8f75d0..bb72ff75a39 100644
--- a/apps/web/src/app/tools/send/new-send/new-send-dropdown.component.ts
+++ b/apps/web/src/app/tools/send/new-send/new-send-dropdown.component.ts
@@ -1,19 +1,19 @@
import { CommonModule } from "@angular/common";
import { Component, Input } from "@angular/core";
-import { Router } from "@angular/router";
import { firstValueFrom, Observable, of, switchMap } from "rxjs";
+import { PremiumBadgeComponent } from "@bitwarden/angular/billing/components/premium-badge";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions";
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
-import { BadgeModule, ButtonModule, DialogService, MenuModule } from "@bitwarden/components";
+import { ButtonModule, DialogService, MenuModule } from "@bitwarden/components";
import { DefaultSendFormConfigService, SendAddEditDialogComponent } from "@bitwarden/send-ui";
@Component({
selector: "tools-new-send-dropdown",
templateUrl: "new-send-dropdown.component.html",
- imports: [JslibModule, CommonModule, ButtonModule, MenuModule, BadgeModule],
+ imports: [JslibModule, CommonModule, ButtonModule, MenuModule, PremiumBadgeComponent],
providers: [DefaultSendFormConfigService],
})
/**
@@ -30,7 +30,6 @@ export class NewSendDropdownComponent {
protected canAccessPremium$: Observable;
constructor(
- private router: Router,
private billingAccountProfileStateService: BillingAccountProfileStateService,
private accountService: AccountService,
private dialogService: DialogService,
@@ -47,16 +46,16 @@ export class NewSendDropdownComponent {
/**
* Opens the SendAddEditComponent for a new Send with the provided type.
- * If has user does not have premium access and the type is File, the user will be redirected to the premium settings page.
+ * If has user does not have premium access and the type is File do nothing the PremiumBadgeComponent will handle the flow.
* @param type The type of Send to create.
*/
async createSend(type: SendType) {
if (!(await firstValueFrom(this.canAccessPremium$)) && type === SendType.File) {
- return await this.router.navigate(["settings/subscription/premium"]);
+ return;
}
const formConfig = await this.addEditFormConfigService.buildConfig("add", undefined, type);
- await SendAddEditDialogComponent.open(this.dialogService, { formConfig });
+ SendAddEditDialogComponent.open(this.dialogService, { formConfig });
}
}
diff --git a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.html b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.html
index b2a57ffb875..6eb9b89b05b 100644
--- a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.html
+++ b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.html
@@ -25,17 +25,10 @@
type="button"
(click)="openAttachmentsDialog()"
>
-