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
b53d83de
Commit
b53d83de
authored
Apr 27, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back button to recover and create process
parent
67ea0921
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
create.component.html
Breeze.UI/src/app/setup/create/create.component.html
+3
-0
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+6
-1
recover.component.html
Breeze.UI/src/app/setup/recover/recover.component.html
+3
-0
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+6
-1
No files found.
Breeze.UI/src/app/setup/create/create.component.html
View file @
b53d83de
...
...
@@ -28,4 +28,7 @@
<div>
<label>
{{responseMessage}}
</label>
</div>
<div
class=
"form-group"
>
<button
type=
"button"
class=
"btn btn-success"
(
click
)="
onBackClicked
()"
>
Back
</button>
</div>
</div>
Breeze.UI/src/app/setup/create/create.component.ts
View file @
b53d83de
import
{
Component
,
Injectable
}
from
'@angular/core'
;
import
{
FormGroup
,
FormControl
,
Validators
,
FormBuilder
}
from
'@angular/forms'
;
import
{
Router
}
from
'@angular/router'
;
import
{
GlobalService
}
from
'../../shared/services/global.service'
;
import
{
ApiService
}
from
'../../shared/services/api.service'
;
...
...
@@ -14,7 +15,7 @@ import { Mnemonic } from '../../shared/classes/mnemonic';
})
export
class
CreateComponent
{
constructor
(
private
globalService
:
GlobalService
,
private
apiService
:
ApiService
,
private
fb
:
FormBuilder
)
{
constructor
(
private
globalService
:
GlobalService
,
private
apiService
:
ApiService
,
private
router
:
Router
,
private
fb
:
FormBuilder
)
{
this
.
createWalletForm
=
fb
.
group
({
"walletName"
:
[
""
,
Validators
.
required
],
"walletPassword"
:
[
""
,
Validators
.
required
],
...
...
@@ -28,6 +29,10 @@ export class CreateComponent {
private
responseMessage
:
string
;
private
errorMessage
:
string
;
private
onBackClicked
()
{
this
.
router
.
navigate
([
"/setup"
]);
}
private
onCreateClicked
()
{
this
.
newWallet
=
new
WalletCreation
(
this
.
createWalletForm
.
get
(
"walletPassword"
).
value
,
...
...
Breeze.UI/src/app/setup/recover/recover.component.html
View file @
b53d83de
...
...
@@ -25,4 +25,7 @@
<div
class=
"form-group"
>
<button
type=
"submit"
[
disabled
]="!
recoverWalletForm
.
valid
"
class=
"btn btn-success"
>
Recover Wallet
</button>
</div>
<div
class=
"form-group"
>
<button
type=
"button"
class=
"btn btn-success"
(
click
)="
onBackClicked
()"
>
Back
</button>
</div>
</form>
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
b53d83de
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
FormGroup
,
FormControl
,
Validators
,
FormBuilder
}
from
'@angular/forms'
;
import
{
Router
}
from
'@angular/router'
;
import
{
GlobalService
}
from
'../../shared/services/global.service'
;
import
{
ApiService
}
from
'../../shared/services/api.service'
;
...
...
@@ -13,7 +14,7 @@ import { WalletRecovery } from '../../shared/classes/wallet-recovery';
})
export
class
RecoverComponent
implements
OnInit
{
constructor
(
private
globalService
:
GlobalService
,
private
apiService
:
ApiService
,
private
fb
:
FormBuilder
)
{
constructor
(
private
globalService
:
GlobalService
,
private
apiService
:
ApiService
,
private
router
:
Router
,
private
fb
:
FormBuilder
)
{
this
.
recoverWalletForm
=
fb
.
group
({
"walletMnemonic"
:
[
""
,
Validators
.
required
],
"walletPassword"
:
[
""
,
Validators
.
required
],
...
...
@@ -31,6 +32,10 @@ export class RecoverComponent implements OnInit {
ngOnInit
()
{
}
private
onBackClicked
()
{
this
.
router
.
navigate
([
"/setup"
]);
}
private
onRecoverClicked
(){
this
.
walletRecovery
=
new
WalletRecovery
(
this
.
recoverWalletForm
.
get
(
"walletMnemonic"
).
value
,
...
...
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