close search view when going to preferences
This commit is contained in:
parent
aed24f97b9
commit
f0e08e94c6
2 changed files with 4 additions and 8 deletions
|
|
@ -1237,10 +1237,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.setAddressbook(ab);
|
self.setAddressbook(ab);
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/Searching', function(event, val) {
|
|
||||||
self.isSearching = val;
|
|
||||||
});
|
|
||||||
|
|
||||||
// UX event handlers
|
// UX event handlers
|
||||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||||
self.updateColor();
|
self.updateColor();
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
ret.isMobile = isMobile.any();
|
ret.isMobile = isMobile.any();
|
||||||
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
|
||||||
var vanillaScope = ret;
|
var vanillaScope = ret;
|
||||||
this.isSearching = false;
|
|
||||||
|
$rootScope.$emit('Local/Searching', false);
|
||||||
|
|
||||||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||||
self.setForm(data);
|
self.setForm(data);
|
||||||
|
|
@ -52,7 +53,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
self.addr = null;
|
self.addr = null;
|
||||||
self.resetForm();
|
self.resetForm();
|
||||||
$scope.search = '';
|
$scope.search = '';
|
||||||
$rootScope.$emit('Local/Searching', false);
|
|
||||||
|
|
||||||
if (profileService.focusedClient) {
|
if (profileService.focusedClient) {
|
||||||
self.setAddress();
|
self.setAddress();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue