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
80cdb66b
Commit
80cdb66b
authored
Sep 20, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #225 from stratisproject/ui
Add blank popup workaround to status bar
parents
8163aaca
7731844c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
status-bar.component.ts
Breeze.UI/src/app/wallet/status-bar/status-bar.component.ts
+18
-4
No files found.
Breeze.UI/src/app/wallet/status-bar/status-bar.component.ts
View file @
80cdb66b
...
...
@@ -25,11 +25,11 @@ export class StatusBarComponent implements OnInit {
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
)
{
}
ngOnInit
()
{
this
.
getGeneralWalletInfo
()
this
.
startSubscriptions
();
}
ngOnDestroy
()
{
this
.
generalWalletInfoSubscription
.
unsubscribe
();
this
.
cancelSubscriptions
();
}
getGeneralWalletInfo
()
{
...
...
@@ -66,12 +66,26 @@ export class StatusBarComponent implements OnInit {
console
.
log
(
error
);
}
else
{
alert
(
error
.
json
().
errors
[
0
].
description
);
if
(
error
.
json
().
errors
[
0
].
description
)
{
alert
(
error
.
json
().
errors
[
0
].
description
);
}
else
{
this
.
cancelSubscriptions
();
this
.
startSubscriptions
();
}
}
}
}
)
;
}
}
;
private
cancelSubscriptions
()
{
if
(
this
.
generalWalletInfoSubscription
)
{
this
.
generalWalletInfoSubscription
.
unsubscribe
();
}
};
private
startSubscriptions
()
{
this
.
getGeneralWalletInfo
();
}
}
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