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

Fix forging tab visibility - Closes #218 #237

Merged
merged 10 commits into from
May 18, 2017

Conversation

slaweet
Copy link
Contributor

@slaweet slaweet commented May 17, 2017

Closes #218

@slaweet slaweet added the bug label May 17, 2017
@slaweet slaweet self-assigned this May 17, 2017
@slaweet slaweet requested a review from reyraa May 17, 2017 12:22
username: data.delegate.username,
});
}).catch(() => {
$timeout(checkPendingRegistration, 10000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use Sync service instead of timeout

@@ -57,7 +57,9 @@ app.component('login', {
passphrase: this.Passphrase.normalize(_passphrase),
network: this.network,
});
this.$state.go(this.$rootScope.landingUrl || 'main.transactions');
this.$state.go(this.$rootScope.landingUrl && this.$rootScope.landingUrl !== 'main.forging' ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this part and make sure the message in src/app/components/forging/forging.pug will be shown if the user is not delegate or the registration is not confirmed,

@@ -65,6 +65,9 @@ app.component('main', {
isDelegate: true,
username: data.delegate.username,
});
if (this.$rootScope.landingUrl === 'main.forging') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants