From 43edc1a89337fa7ff4d37f166e08644f1bb992ec Mon Sep 17 00:00:00 2001
From: ttalty <144813356+ttalty@users.noreply.github.com>
Date: Tue, 31 Oct 2023 13:52:24 -0400
Subject: [PATCH] [PM-105] Premium Badge Send File (#6684)
* adding the premium badge for the send item file option
* Removing the unnecessary margin after seeing design spec
---
apps/web/src/app/tools/send/add-edit.component.html | 9 ++++++++-
libs/angular/src/tools/send/add-edit.component.ts | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/apps/web/src/app/tools/send/add-edit.component.html b/apps/web/src/app/tools/send/add-edit.component.html
index 319d988f21..3225b61350 100644
--- a/apps/web/src/app/tools/send/add-edit.component.html
+++ b/apps/web/src/app/tools/send/add-edit.component.html
@@ -32,8 +32,15 @@
id="type_{{ o.value }}"
class="tw-block"
[value]="o.value"
+ [disabled]="!canAccessPremium && o.premium"
>
- {{ o.name }}
+
+ {{ o.name }}
+
+
diff --git a/libs/angular/src/tools/send/add-edit.component.ts b/libs/angular/src/tools/send/add-edit.component.ts
index 32d14db471..f01ae52b8e 100644
--- a/libs/angular/src/tools/send/add-edit.component.ts
+++ b/libs/angular/src/tools/send/add-edit.component.ts
@@ -118,8 +118,8 @@ export class AddEditComponent implements OnInit, OnDestroy {
protected formBuilder: FormBuilder
) {
this.typeOptions = [
- { name: i18nService.t("sendTypeFile"), value: SendType.File },
- { name: i18nService.t("sendTypeText"), value: SendType.Text },
+ { name: i18nService.t("sendTypeFile"), value: SendType.File, premium: true },
+ { name: i18nService.t("sendTypeText"), value: SendType.Text, premium: false },
];
this.sendLinkBaseUrl = this.environmentService.getSendUrl();
}