Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #392 from LiskHQ/391-forging-tab-fixings
Browse files Browse the repository at this point in the history
Fix template issues in forging tab - Closes #391
  • Loading branch information
reyraa authored Jun 12, 2017
2 parents 752dcf4 + f5c140e commit a052cc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/forging/forging.pug
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
md-card.offline-hide
div
md-content
div(layout='row', ng-if='$ctrl.delegate && !$ctrl.delegate.username')
md-content(ng-if='!$ctrl.account.get().isDelegate')
div(layout='row')
md-card(flex-100, flex-gt-xs=100, layout-align='center center', layout-padding)
span.title You need to become a delegate to start forging. If you already registered to become a delegate, your registration hasn't been processed, yet.
md-content(ng-if='$ctrl.account.get().isDelegate')
div(layout='column', layout-gt-xs='row')
md-card(flex-gt-xs=100, layout-padding)
md-card-title
Expand Down
3 changes: 2 additions & 1 deletion test/components/forging/forging.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('Forging component', () => {
balance: lsk.from(100),
network,
delegate,
isDelegate: true,
};

account.set(testAcount);
Expand Down Expand Up @@ -91,7 +92,7 @@ describe('Forging component', () => {
});

it('should contain a card with delegate name', () => {
expect(element.find('md-card').text()).to.contain(delegate.username);
expect(element.find('.delegate-name').text()).to.contain(delegate.username);
});

it('should contain a card with rank ', () => {
Expand Down

0 comments on commit a052cc1

Please sign in to comment.