refactor
This commit is contained in:
parent
12a6907af6
commit
0d3f2bc802
7 changed files with 29 additions and 29 deletions
|
|
@ -98,6 +98,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
};
|
||||
|
||||
$scope.sendMax = function() {
|
||||
$scope.showSendMax = false;
|
||||
$state.transitionTo('tabs.send.confirm', {
|
||||
isWallet: $scope.isWallet,
|
||||
toAmount: null,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.directives')
|
||||
.directive('sendMax', function($timeout) {
|
||||
.directive('itemSelector', function($timeout) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
templateUrl: 'views/includes/sendMax.html',
|
||||
templateUrl: 'views/includes/itemSelector.html',
|
||||
transclude: true,
|
||||
scope: {
|
||||
show: '=sendMaxShow',
|
||||
onSelect: '=sendMaxOnSelect'
|
||||
show: '=itemSelectorShow',
|
||||
onSelect: '=itemSelectorOnSelect'
|
||||
},
|
||||
link: function(scope, element, attrs) {
|
||||
scope.hide = function() {
|
||||
Loading…
Add table
Add a link
Reference in a new issue