[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
This commit is contained in:
ttalty 2023-10-31 13:52:24 -04:00 committed by GitHub
parent 77ee09540e
commit 43edc1a893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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>

View File

@ -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();
}