Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
93b71fc2
Commit
93b71fc2
authored
May 12, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add date picker, edit wallet recovery
parent
944bed7a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
3 deletions
+16
-3
package.json
Breeze.UI/package.json
+1
-0
app.module.ts
Breeze.UI/src/app/app.module.ts
+2
-0
recover.component.html
Breeze.UI/src/app/setup/recover/recover.component.html
+4
-0
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+3
-1
setup.module.ts
Breeze.UI/src/app/setup/setup.module.ts
+2
-0
wallet-recovery.ts
Breeze.UI/src/app/shared/classes/wallet-recovery.ts
+4
-2
No files found.
Breeze.UI/package.json
View file @
93b71fc2
...
...
@@ -33,6 +33,7 @@
"@angular/platform-browser-dynamic"
:
"^4.1.2"
,
"@angular/platform-server"
:
"^4.1.2"
,
"@angular/router"
:
"^4.1.2"
,
"angular2-material-datepicker"
:
"^0.5.0"
,
"bootstrap"
:
"^4.0.0-alpha.6"
,
"core-js"
:
"^2.4.1"
,
"rxjs"
:
"^5.4.0"
,
...
...
Breeze.UI/src/app/app.module.ts
View file @
93b71fc2
...
...
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
FormsModule
,
ReactiveFormsModule
}
from
"@angular/forms"
;
import
{
HttpModule
}
from
'@angular/http'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
SharedModule
}
from
'./shared/shared.module'
;
...
...
@@ -18,6 +19,7 @@ import { GlobalService } from './shared/services/global.service';
imports
:
[
AppRoutingModule
,
BrowserModule
,
BrowserAnimationsModule
,
ReactiveFormsModule
,
FormsModule
,
HttpModule
,
...
...
Breeze.UI/src/app/setup/recover/recover.component.html
View file @
93b71fc2
...
...
@@ -22,6 +22,10 @@
<option
value=
"test"
>
Testnet
</option>
</select>
</div>
<div
class=
"form-group"
>
<label>
Creation date:
</label>
<material-datepicker
[(
date
)]="
creationDate
"
></material-datepicker>
</div>
<div
class=
"form-group"
>
<button
type=
"submit"
[
disabled
]="!
recoverWalletForm
.
valid
"
class=
"btn btn-success"
>
Recover Wallet
</button>
</div>
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
93b71fc2
...
...
@@ -24,6 +24,7 @@ export class RecoverComponent implements OnInit {
}
private
recoverWalletForm
:
FormGroup
;
private
creationDate
:
Date
;
private
walletRecovery
:
WalletRecovery
;
private
responseMessage
:
string
;
...
...
@@ -42,7 +43,8 @@ export class RecoverComponent implements OnInit {
this
.
recoverWalletForm
.
get
(
"walletPassword"
).
value
,
this
.
recoverWalletForm
.
get
(
"selectNetwork"
).
value
,
this
.
globalService
.
getWalletPath
(),
this
.
recoverWalletForm
.
get
(
"walletName"
).
value
this
.
recoverWalletForm
.
get
(
"walletName"
).
value
,
this
.
creationDate
);
this
.
recoverWallet
(
this
.
walletRecovery
);
}
...
...
Breeze.UI/src/app/setup/setup.module.ts
View file @
93b71fc2
import
{
CommonModule
}
from
'@angular/common'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
ReactiveFormsModule
}
from
'@angular/forms'
;
import
{
DatepickerModule
}
from
'angular2-material-datepicker'
import
{
SetupComponent
}
from
'./setup.component'
;
import
{
CreateComponent
}
from
'./create/create.component'
;
...
...
@@ -13,6 +14,7 @@ import { RecoverComponent } from './recover/recover.component';
@
NgModule
({
imports
:
[
CommonModule
,
DatepickerModule
,
ReactiveFormsModule
,
SetupRoutingModule
,
SharedModule
.
forRoot
()
...
...
Breeze.UI/src/app/shared/classes/wallet-recovery.ts
View file @
93b71fc2
export
class
WalletRecovery
{
constructor
(
mnemonic
:
string
,
password
:
string
,
network
:
string
,
folderPath
:
string
,
name
:
string
)
{
constructor
(
mnemonic
:
string
,
password
:
string
,
network
:
string
,
folderPath
:
string
,
walletName
:
string
,
creationDate
:
Date
)
{
this
.
mnemonic
=
mnemonic
;
this
.
password
=
password
;
this
.
network
=
network
;
this
.
folderPath
=
folderPath
;
this
.
name
=
name
;
this
.
name
=
walletName
;
this
.
creationDate
=
creationDate
;
}
mnemonic
:
string
;
...
...
@@ -13,4 +14,5 @@ export class WalletRecovery {
folderPath
:
string
;
name
:
string
;
network
:
string
;
creationDate
:
Date
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment