Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div id="logo-container-centered" class="centerIt">
<div id="logoo">
<img id="logo-spin" src="img/logo-spin.svg" />
<p id="networkCheck" ng-cloak>{{::splash.connectionFailed}}</p>
<p id="networkCheck">Loading</p>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function AngularApplicationRun(rest, applicationConstants, notificationService,
//var url = 'http://52.28.66.217:6869';
//var url = 'http://52.77.111.219:6869';
//var url = 'http://127.0.0.1:6869';
//var url = 'http://127.0.0.1:8089';
rest.setBaseUrl(url);

// override mock methods cos in config phase services are not available yet
Expand Down
6 changes: 2 additions & 4 deletions src/js/portfolio/asset.reissue.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,13 @@
reissue.asset.currency.displayName + '<br/>Date: ' +
formattingService.formatTimestamp(transaction.timestamp);
notificationService.notice(displayMessage);
//enable confirm button
reissue.confirm.reissuePending = false;
transaction = undefined;
}, function (response) {
if (angular.isDefined(response.data))
if (response.data)
notificationService.error('Error:' + response.data.error + ' - ' + response.data.message);
else
notificationService.error('Request failed. Status: ' + response.status + ' - ' +
response.statusText);
}).finally(function () {
//enable confirm button
reissue.confirm.reissuePending = false;
transaction = undefined;
Expand Down
6 changes: 2 additions & 4 deletions src/js/portfolio/asset.transfer.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,13 @@
'<br/>Recipient ' + address.substr(0,15) + '...<br/>Date: ' +
formattingService.formatTimestamp(transaction.timestamp);
notificationService.notice(displayMessage);
//enable confirm button
transfer.confirm.paymentPending = false;
transaction = undefined;
}, function (response) {
if (angular.isDefined(response.data))
if (response.data)
notificationService.error('Error:' + response.data.error + ' - ' + response.data.message);
else
notificationService.error('Request failed. Status: ' + response.status + ' - ' +
response.statusText);
}).finally(function () {
//enable confirm button
transfer.confirm.paymentPending = false;
transaction = undefined;
Expand Down
12 changes: 3 additions & 9 deletions src/js/splash.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@

angular
.module('app.ui')
.controller('splashController', ['$scope', 'apiService', 'ui.events', function ($scope, api, events) {
.controller('splashController', ['$scope', '$timeout', 'ui.events', function ($scope, $timeout, events) {
NProgress.start();

var splash = this;

api.blocks.last().then(function (block) {
$timeout(function () {
NProgress.done();
$scope.$emit(events.SPLASH_COMPLETED);
},
function (response) {
NProgress.done();
splash.connectionFailed = 'Failed connecting to Waves';
});
}, 1);
}]);
})();
14 changes: 6 additions & 8 deletions src/js/tokens/token.create.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,21 @@
// disable confirm button
ctrl.confirm.pendingIssuance = true;
apiService.assets.issue(transaction).then(function (response) {
resetIssueAssetForm();

applicationContext.cache.assets.put(response);

var displayMessage = 'Asset ' + ctrl.confirm.name + ' has been issued!<br/>' +
'Total tokens amount: ' + ctrl.confirm.totalTokens + '<br/>' +
'Date: ' + formattingService.formatTimestamp(transaction.timestamp);
notificationService.notice(displayMessage);

applicationContext.cache.assets.put(response);

transaction = undefined;
ctrl.confirm.pendingIssuance = false;
resetIssueAssetForm();
}, function (response) {
if (angular.isDefined(response.data))
if (response.data)
notificationService.error('Error:' + response.data.error + ' - ' + response.data.message);
else
notificationService.error('Request failed. Status: ' + response.status + ' - ' +
response.statusText);

}).finally(function () {
transaction = undefined;
ctrl.confirm.pendingIssuance = false;
});
Expand Down
6 changes: 2 additions & 4 deletions src/js/wallet/wallet.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,13 @@
'<br>Recipient ' + address.substr(0,15) + '...<br>Date: ' +
formattingService.formatTimestamp(transaction.timestamp);
notificationService.notice(displayMessage);
//enable confirm button
wallet.confirm.paymentPending = false;
transaction = undefined;
}, function (response) {
if (angular.isDefined(response.data))
if (response.data)
notificationService.error('Error:' + response.data.error + ' - ' + response.data.message);
else
notificationService.error('Request failed. Status: ' + response.status + ' - ' +
response.statusText);
}).finally(function () {
//enable confirm button
wallet.confirm.paymentPending = false;
transaction = undefined;
Expand Down