Clipboard empty message + translations

This commit is contained in:
Sebastiaan Pasma 2018-07-13 14:16:15 +02:00
commit 358ae5842c
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
2 changed files with 14 additions and 8 deletions

View file

@ -2528,6 +2528,14 @@ msgstr ""
msgid "Search or enter bitcoin address"
msgstr ""
#: src/js/controllers/tab-send.js:28
msgid "Clipboard"
msgstr ""
#: src/js/controllers/tab-send.js:29
msgid "Your Clipboard is empty"
msgstr ""
#: www/views/modals/search.html:16
msgid "Search transactions"
msgstr ""

View file

@ -1,19 +1,12 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $rootScope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService, platformInfo, bwcError, gettextCatalog, scannerService, configService, bitcoinCashJsService, $ionicNavBarDelegate, clipboardService) {
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $rootScope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService, platformInfo, bwcError, gettextCatalog, scannerService, configService, bitcoinCashJsService, $ionicPopup, $ionicNavBarDelegate, clipboardService) {
var clipboardHasAddress = false;
var clipboardHasContent = false;
var originalList;
$scope.displayBalanceAsFiat = true;
$scope.walletSelectorTitleForce = true;
$scope.walletHide = function() {
console.log("wallet HIDE");
alert('test');
};
$scope.addContact = function() {
$state.go('tabs.settings').then(function() {
$state.go('tabs.addressbook').then(function() {
@ -30,6 +23,11 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
});
$scope.findContact($scope.formData.search);
});
} else {
$ionicPopup.alert({
title: gettextCatalog.getString('Clipboard'),
template: gettextCatalog.getString('Your Clipboard is empty')
});
}
};