From 358ae5842cf243d58e351eef868f84bd40909c40 Mon Sep 17 00:00:00 2001 From: Sebastiaan Pasma Date: Fri, 13 Jul 2018 14:16:15 +0200 Subject: [PATCH] Clipboard empty message + translations --- i18n/po/template.pot | 8 ++++++++ src/js/controllers/tab-send.js | 14 ++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/i18n/po/template.pot b/i18n/po/template.pot index 12a9c1f5c..a23e5dbae 100644 --- a/i18n/po/template.pot +++ b/i18n/po/template.pot @@ -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 "" diff --git a/src/js/controllers/tab-send.js b/src/js/controllers/tab-send.js index c13a27f7e..3c73c229c 100644 --- a/src/js/controllers/tab-send.js +++ b/src/js/controllers/tab-send.js @@ -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') + }); } };