-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: new component for sub account UI (#266)
* feature: new component for sub account UI * feature: add feature flag guard for new account select component (#268) * feature: add feature flag guard for new account select component * feature: backup seed component (#269) * feature: backup seed component * feature: add balance to account selector UI (#270) * feature: add balance to account selector UI * migrate swal to mat dialog (#273) * migrate swal to mat dialog * update button styles (#277) * update button styles * review feedback and bug fixes (#279)
- Loading branch information
1 parent
5ea24e3
commit 7027d24
Showing
34 changed files
with
1,182 additions
and
264 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
src/app/grouped-account-select/backup-seed-dialog/backup-seed-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<div class="dialog"> | ||
<header class="dialog__header"> | ||
<button class="dialog__x" style="top: 0; right: 0" (click)="cancel()"> | ||
<i-feather name="x" /> | ||
</button> | ||
<h1 class="dialog__title">Backup DeSo Seed</h1> | ||
</header> | ||
<div class="dialog__body"> | ||
<div *ngIf="this.step === 1" class="text--center"> | ||
<p class="margin-bottom--small"> | ||
Your seed phrase is the only way to recover your DeSo account. If you | ||
lose your seed phrase, you will lose access to your DeSo account. Store | ||
it in a safe and secure place. | ||
</p> | ||
<p class="margin-bottom--small font-size--large text--neutral-white"> | ||
<strong | ||
>DO NOT share your seed phrase with anyone! Support agents will never | ||
request this.</strong | ||
> | ||
</p> | ||
<footer class="display--flex"> | ||
<button | ||
class="button--medium button--primary--outline" | ||
(click)="cancel()" | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
class="button--medium button--primary margin-left--small" | ||
(click)="showSecrets()" | ||
> | ||
Continue | ||
</button> | ||
</footer> | ||
</div> | ||
|
||
<ng-container *ngIf="this.step === 2"> | ||
<div *ngIf="this.mnemonic" class="margin-bottom--small"> | ||
<p>Seed Phrase</p> | ||
<recovery-secret [secret]="this.mnemonic" /> | ||
</div> | ||
<div *ngIf="this.extraText" class="margin-bottom--small"> | ||
<p>Pass Phrase</p> | ||
<recovery-secret [secret]="this.extraText" /> | ||
</div> | ||
<div *ngIf="this.seedHex"> | ||
<p>Seed Hex</p> | ||
<p class="font-size--small"> | ||
Provides an alternative means of logging in if you don't have a seed | ||
phrase. | ||
</p> | ||
<recovery-secret [secret]="this.seedHex" /> | ||
</div> | ||
<button | ||
class="button--primary button--medium margin-top--large" | ||
(click)="showDisableBackupConfirmation()" | ||
> | ||
Disable DeSo Seed Backup | ||
</button> | ||
<p | ||
class="font-size--small margin-top--xsmall padding-left--small padding-right--small" | ||
> | ||
Disabling backup makes your account more secure by preventing anyone | ||
from revealing your seed in the future, even if they've gained access to | ||
your device. | ||
</p> | ||
</ng-container> | ||
|
||
<div *ngIf="this.step === 3" class="text--center"> | ||
<p class="margin-bottom--small"> | ||
Disabling backup means you will not be able to access your seed phrase | ||
anymore. | ||
<strong | ||
>Make sure that you've copied your seed phrase and stored it in a safe | ||
place before you proceed.</strong | ||
> | ||
</p> | ||
<footer class="display--flex"> | ||
<button | ||
class="button--medium button--primary--outline" | ||
(click)="cancel()" | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
class="button--medium button--primary margin-left--small" | ||
(click)="disableBackup()" | ||
> | ||
Confirm | ||
</button> | ||
</footer> | ||
</div> | ||
</div> | ||
</div> |
Empty file.
Oops, something went wrong.