Skip to content

Commit

Permalink
export account changes
Browse files Browse the repository at this point in the history
  • Loading branch information
poliha committed Apr 25, 2020
1 parent a9ec71f commit 1ff4840
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
13 changes: 8 additions & 5 deletions src/app/pages/export-account/export-account.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
</div>
<ng-template #showExport>
<div>
<p class="ion-text-wrap">Backup key <app-copy-button [copyInput]="encryptionKey">
<p class="ion-text-wrap"><span class="large-font">Backup key</span>
<app-copy-button [copyInput]="encryptionKey">
</app-copy-button>
</p>

<ion-label>{{encryptionKey}}</ion-label>
<p class="normal-font highlight-bg">{{encryptionKey}}</p>
</div>
<div>
<p class="ion-text-wrap">Account Backup <app-copy-button [copyInput]="dataToExport">
<p class="ion-text-wrap">
<span class="large-font">Backup Data</span>
<app-copy-button [copyInput]="dataToExport">
</app-copy-button>
</p>

<ion-note class="ion-text-wrap">{{dataToExport}}</ion-note>
<ion-textarea disabled readonly [value]="dataToExport" rows="10">
</ion-textarea>
</div>

<div class="ion-margin ion-text-center">
Expand Down
10 changes: 5 additions & 5 deletions src/app/pages/import-account/import-account.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<ion-content class="ion-padding">
<div>
<form [formGroup]="importAccountForm">
<ion-item>
<ion-label position="stacked">Backup Data</ion-label>
<ion-textarea formControlName="backupData" placeholder="c8e4adc24479220e33aa78 ..." auto-grow autofocus>
</ion-textarea>
</ion-item>
<ion-item>
<ion-label position="stacked">Backup Key</ion-label>
<app-dynamic-input [inputType]="'text'" [form]="importAccountForm" [controlName]="'backupKey'"
[placeHolder]="'just five words expected here'"></app-dynamic-input>
</ion-item>
<ion-item>
<ion-label position="stacked">Backup Data</ion-label>
<ion-textarea formControlName="backupData" placeholder="c8e4adc24479220e33aa78 ..." auto-grow autofocus>
</ion-textarea>
</ion-item>
<ion-item>
<ion-label position="stacked">Password</ion-label>
<app-dynamic-input [inputType]="'password'" [form]="importAccountForm" [controlName]="'password'"
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const environment = {
production: true,
AUTH_TIMEOUT: 180000,
AUTH_TIMEOUT: 180000, // 3mins
DB_NAME: '_sazaDBOfflineProd',
};

Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export const environment = {
production: false,
AUTH_TIMEOUT: 600000,
AUTH_TIMEOUT: 600000, // 10mins
DB_NAME: '_sazaDBOfflineDev',
};

Expand Down
6 changes: 6 additions & 0 deletions src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,10 @@ ion-header {

.active-menu {
--background: var(--ion-color-light-shade, #d7d8da);
}

.highlight-bg {
background-color: var(--ion-color-light-shade, #d7d8da);
padding: 15px;
border-radius: 20px;
}

0 comments on commit 1ff4840

Please sign in to comment.