From 5c3698ad8cad97df43277db8aa175bd5df08abaf Mon Sep 17 00:00:00 2001 From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com> Date: Tue, 13 Jun 2023 11:29:28 +0300 Subject: [PATCH 01/15] PER-9237 gift-storage-interface This pr's purpose is the implementation of the gift storage interface. I have added a new tab to the dropdown for the gift component. I have created a new component which in which the new form lies where the user must input the email, amount and the message. Upon confirmation a new modal pops up for confirmation. --- .../components/storage-dialog/storage-dialog.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/core/components/storage-dialog/storage-dialog.component.ts b/src/app/core/components/storage-dialog/storage-dialog.component.ts index 650092256..8de18edec 100644 --- a/src/app/core/components/storage-dialog/storage-dialog.component.ts +++ b/src/app/core/components/storage-dialog/storage-dialog.component.ts @@ -2,12 +2,13 @@ import { ActivatedRoute, ParamMap } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { IsTabbedDialog, DialogRef } from '@root/app/dialog/dialog.module'; + +import { PromoVOData, AccountVO } from '@models'; import { UntypedFormGroup, UntypedFormBuilder, Validators, } from '@angular/forms'; -import { PromoVOData, AccountVO } from '@models'; import { ApiService } from '@shared/services/api/api.service'; import { BillingResponse, @@ -79,6 +80,10 @@ export class StorageDialogComponent implements OnInit, IsTabbedDialog { `Gift code redeemed for ${pipe.transform(bytes)} of storage`, 'success' ); + this.message.showMessage( + `Gift code redeemed for ${pipe.transform(bytes)} of storage`, + 'success' + ); this.promoForm.reset(); } catch (err) { if (err instanceof BillingResponse || err instanceof AccountResponse) { From 2b44d663e336db7c22f82aba27009e6ccb5f82a5 Mon Sep 17 00:00:00 2001 From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:43:11 +0300 Subject: [PATCH 02/15] PER-9373 enter multiple emails. Changed the ui --- .../gift-storage/gift-storage.component.html | 9 ++++++--- .../gift-storage/gift-storage.component.scss | 11 ++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/app/core/components/gift-storage/gift-storage.component.html b/src/app/core/components/gift-storage/gift-storage.component.html index def84b274..97e2b23a4 100644 --- a/src/app/core/components/gift-storage/gift-storage.component.html +++ b/src/app/core/components/gift-storage/gift-storage.component.html @@ -15,7 +15,10 @@ >
- + + Separate multiple email addresses with commas
- gigabytes + gigabytes per recipient

Storage can only be gifted in 1GB increments. @@ -56,7 +59,7 @@

- Optional + Optional; sent to all recipients