Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[TASK] Navbar: Update migrate link
Browse files Browse the repository at this point in the history
  • Loading branch information
vhpoet committed Dec 23, 2015
1 parent 49b99ca commit 4023ca7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/js/controllers/navbar.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ var Amount = ripple.Amount,
var module = angular.module('navbar', []);

module.controller('NavbarCtrl', ['$scope', '$element', '$compile', 'rpId',
'rpNetwork', '$location',
'rpNetwork', '$location', 'rpTracker',
function ($scope, el, $compile, id,
network, $location)
network, $location, tracker)
{
$scope.loading = true;
var queue = [];
Expand All @@ -30,6 +30,13 @@ module.controller('NavbarCtrl', ['$scope', '$element', '$compile', 'rpId',
location.reload();
};

$scope.migrate = function() {
tracker.track('Migrate to Gatehub', {
'Status': 'success'
});
window.location.assign('https://signin.gatehub.net/signup?rt=true');
};

$scope.$watch('connected', function(){
$scope.fee = network.remote.createTransaction()._computeFee();
// $scope.currentFee = ripple.Amount.from_json($scope.fee).to_human();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/client/navbar.jade
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ nav.navbar(role="navigation", ng-controller="NavbarCtrl")
//- span.balance {{balance.total | rpamount:{rel_precision: 2} }} 
//- span.balance(rp-currency="balance.total", rp-currency-short)
li
a.btn.btn-submit.btn-block.btn-success#migrateBtn(type="submit", ng-click="logout()")
a.btn.btn-submit.btn-block.btn-success#migrateBtn(type="submit", ng-click="migrate()")
span(l10n) Migrate Wallet to Gatehub
li
span(class="serverStatus {{connected ? 'online' : 'offline'}} {{serverLoad}}"
Expand Down

0 comments on commit 4023ca7

Please sign in to comment.