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
662503f8
Commit
662503f8
authored
May 24, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
May 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #78 from stratisproject/ui
Add temporary redirect after creating/recovering wallet
parents
8b25d8f1
09a2e498
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
create.component.html
Breeze.UI/src/app/setup/create/create.component.html
+1
-1
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+6
-5
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+2
-0
styles.css
Breeze.UI/src/styles.css
+1
-0
No files found.
Breeze.UI/src/app/setup/create/create.component.html
View file @
662503f8
...
...
@@ -34,7 +34,7 @@
<div
class=
"row"
>
<div
class=
"col"
id=
"mnemonic"
>
<label>
Mnemonic:
</label>
<label>
{{
responseMessage
}}
</label>
<label>
{{
mnemonic
}}
</label>
</div>
</div>
</div>
Breeze.UI/src/app/setup/create/create.component.ts
View file @
662503f8
...
...
@@ -22,8 +22,7 @@ export class CreateComponent {
private
createWalletForm
:
FormGroup
;
private
newWallet
:
WalletCreation
;
private
responseMessage
:
string
;
private
errorMessage
:
string
;
private
mnemonic
:
string
;
private
buildCreateForm
():
void
{
this
.
createWalletForm
=
this
.
fb
.
group
({
...
...
@@ -94,13 +93,15 @@ export class CreateComponent {
.
subscribe
(
response
=>
{
if
(
response
.
status
>=
200
&&
response
.
status
<
400
){
this
.
responseMessage
=
response
.
json
();
this
.
mnemonic
=
response
.
json
();
alert
(
"Your wallet has been created. Please write down your 12 word passphrase:
\n
"
+
this
.
mnemonic
+
"
\n
You will be redirected to the decryption page."
);
this
.
router
.
navigate
([
''
]);
}
},
error
=>
{
if
(
error
.
status
>=
400
)
{
this
.
errorMessage
=
error
;
console
.
log
(
this
.
errorMessage
);
let
errorMessage
=
error
;
console
.
log
(
errorMessage
);
}
}
);
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
662503f8
...
...
@@ -107,6 +107,8 @@ export class RecoverComponent implements OnInit {
response
=>
{
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
this
.
responseMessage
=
response
;
alert
(
"Your wallet has been recovered.
\n
You will be redirected to the decryption page."
);
this
.
router
.
navigate
([
''
])
}
},
error
=>
{
...
...
Breeze.UI/src/styles.css
View file @
662503f8
...
...
@@ -2,6 +2,7 @@
*
{
font-family
:
"Lato"
;
user-select
:
none
;
}
/* Temporary min td with */
...
...
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