Browse Source

[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
CLOUDOPS-838
ttalty 2 years ago committed by GitHub
parent
commit
43edc1a893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      apps/web/src/app/tools/send/add-edit.component.html
  2. 4
      libs/angular/src/tools/send/add-edit.component.ts

9
apps/web/src/app/tools/send/add-edit.component.html

@ -32,8 +32,15 @@ @@ -32,8 +32,15 @@
id="type_{{ o.value }}"
class="tw-block"
[value]="o.value"
[disabled]="!canAccessPremium && o.premium"
>
<bit-label>{{ o.name }}</bit-label>
<bit-label>
{{ o.name }}
<app-premium-badge
class="tw-mx-1"
*ngIf="!canAccessPremium && o.premium"
></app-premium-badge>
</bit-label>
</bit-radio-button>
</bit-radio-group>
</div>

4
libs/angular/src/tools/send/add-edit.component.ts

@ -118,8 +118,8 @@ export class AddEditComponent implements OnInit, OnDestroy { @@ -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();
}

Loading…
Cancel
Save