Merge pull request #598 from jamal-jackson/feature/wallet_preferences_name_change

disabled save button for name change until value is different than st…
This commit is contained in:
Matias Alejo Garcia 2016-10-20 07:14:13 -03:00 committed by GitHub
commit 781604da90
2 changed files with 8 additions and 1 deletions

View file

@ -23,4 +23,11 @@ angular.module('copayApp.controllers').controller('preferencesAliasController',
$ionicHistory.goBack();
});
};
$scope.valueCheck = function() {
if ($scope.alias.value == wallet.credentials.walletName || $scope.alias.value == '') $scope.disableSave = true;
else $scope.disableSave = false;
};
$scope.$watch('alias.value', function(newvalue, oldvalue) {
$scope.valueCheck();
});
});