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
7b0fb800
Commit
7b0fb800
authored
Sep 27, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Sep 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #249 from stratisproject/ui
Remove old datepicker module, wait for both daemons to be loaded
parents
bb45944b
0fce8e77
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
5 deletions
+16
-5
package.json
Breeze.UI/package.json
+0
-1
app.component.ts
Breeze.UI/src/app/app.component.ts
+5
-1
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+1
-1
setup.module.ts
Breeze.UI/src/app/setup/setup.module.ts
+0
-2
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+10
-0
No files found.
Breeze.UI/package.json
View file @
7b0fb800
...
...
@@ -52,7 +52,6 @@
"@angular/platform-server"
:
"4.4.3"
,
"@angular/router"
:
"4.4.3"
,
"@ng-bootstrap/ng-bootstrap"
:
"1.0.0-beta.5"
,
"angular2-material-datepicker"
:
"0.5.0"
,
"bootstrap"
:
"4.0.0-beta"
,
"core-js"
:
"2.5.1"
,
"electron-context-menu"
:
"0.9.1"
,
...
...
Breeze.UI/src/app/app.component.ts
View file @
7b0fb800
...
...
@@ -23,7 +23,11 @@ export class AppComponent implements OnInit {
ngOnInit
()
{
this
.
setTitle
();
this
.
apiService
.
getWalletFiles
().
retryWhen
(
errors
=>
errors
.
delay
(
2000
)).
subscribe
(()
=>
this
.
startApp
());
this
.
apiService
.
getWalletFiles
().
retryWhen
(
errors
=>
errors
.
delay
(
2000
)).
subscribe
(()
=>
this
.
checkStratisDaemon
());
}
private
checkStratisDaemon
()
{
this
.
apiService
.
getStratisWalletFiles
().
retryWhen
(
errors
=>
errors
.
delay
(
2000
)).
subscribe
(()
=>
this
.
startApp
());
}
private
startApp
()
{
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
7b0fb800
...
...
@@ -23,8 +23,8 @@ export class RecoverComponent implements OnInit {
public
creationDate
:
Date
;
public
isRecovering
:
boolean
=
false
;
public
maxDate
=
new
Date
();
public
bsConfig
:
Partial
<
BsDatepickerConfig
>
;
private
walletRecovery
:
WalletRecovery
;
private
bsConfig
:
Partial
<
BsDatepickerConfig
>
;
ngOnInit
()
{
this
.
bsConfig
=
Object
.
assign
({},
{
showWeekNumbers
:
false
,
containerClass
:
'theme-blue'
});
...
...
Breeze.UI/src/app/setup/setup.module.ts
View file @
7b0fb800
import
{
CommonModule
}
from
'@angular/common'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
ReactiveFormsModule
}
from
'@angular/forms'
;
import
{
DatepickerModule
}
from
'angular2-material-datepicker'
import
{
BsDatepickerModule
}
from
'ngx-bootstrap/datepicker'
;
import
{
SetupComponent
}
from
'./setup.component'
;
...
...
@@ -16,7 +15,6 @@ import { RecoverComponent } from './recover/recover.component';
imports
:
[
BsDatepickerModule
.
forRoot
(),
CommonModule
,
DatepickerModule
,
ReactiveFormsModule
,
SetupRoutingModule
,
SharedModule
.
forRoot
()
...
...
Breeze.UI/src/app/shared/services/api.service.ts
View file @
7b0fb800
...
...
@@ -48,6 +48,16 @@ export class ApiService {
.
map
((
response
:
Response
)
=>
response
);
}
/**
* Gets available wallets at the default path
*/
getStratisWalletFiles
():
Observable
<
any
>
{
return
this
.
http
.
get
(
this
.
stratisApiUrl
+
'/wallet/files'
)
.
map
((
response
:
Response
)
=>
response
);
}
/**
* Get a new mnemonic
*/
...
...
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