Skip to content

Commit

Permalink
Improved message when no account is in the wallet.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokr committed Jan 8, 2018
1 parent f525767 commit b92b43c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/js/controllers/tab-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ angular.module('canoeApp.controllers').controller('tabSendController', function
}

// This could probably be enhanced refactoring the routes abstract states
$scope.createWallet = function () {
$scope.createAccount = function () {
$state.go('tabs.home').then(function () {
$state.go('tabs.create-account')
})
Expand Down
2 changes: 1 addition & 1 deletion src/js/services/latestReleaseService.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ angular.module('canoeApp.services')
function verifyTagFormat (tag) {
var regex = /^v?\d+\.\d+\.\d+$/i
return regex.exec(tag)
};
}

function formatTagNumber (tag) {
var formattedNumber = tag.replace(/^v/i, '').split('.')
Expand Down
6 changes: 3 additions & 3 deletions www/views/tab-send.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
Start sending RaiBlocks
</div>
<div class="subtitle">
<span ng-show="hasAccounts" translate>To get started, share your account to receive RaiBlocks.</span>
<span ng-show="!hasAccounts" translate>To get started, you'll need to create a RaiBlocks Wallet and get some RaiBlocks.</span>
<span ng-show="hasAccounts" translate>To get started, you need Raiblocks. Share your account to receive RaiBlocks.</span>
<span ng-show="!hasAccounts" translate>To get started, you need an Account in your wallet to receive RaiBlocks.</span>
<div class="padding">
<!-- <button class="button button-standard button-primary" ng-click="buyRaiblocks()" ng-show="hasAccounts" translate>Buy RaiBlocks</button>-->
<button class="button button-standard button-primary" ng-click="createWallet()" ng-show="!hasAccounts" translate>Create Wallet</button>
<button class="button button-standard button-primary" ng-click="createAccount()" ng-show="!hasAccounts" translate>Create Account</button>
<button class="button button-standard button-secondary" ui-sref="tabs.receive" ng-show="hasAccounts" translate>Show Account</button>
</div>
</div>
Expand Down

0 comments on commit b92b43c

Please sign in to comment.