From 8ed24880bc3cadec65f66453c9dce7fea74f9696 Mon Sep 17 00:00:00 2001 From: nelo Date: Wed, 1 Mar 2017 10:48:27 +0100 Subject: [PATCH] Activate solucionado sus errores --- client/client/src/card/index.html | 2 +- client/client/src/descriptor/index.html | 2 +- client/client/src/descriptor/index.js | 5 +++-- client/core/src/switch/switch.mdl.html | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/client/src/card/index.html b/client/client/src/card/index.html index d327446c7..0adc9a513 100644 --- a/client/client/src/card/index.html +++ b/client/client/src/card/index.html @@ -1,6 +1,6 @@ - + diff --git a/client/client/src/descriptor/index.html b/client/client/src/descriptor/index.html index 05a869d34..333803051 100644 --- a/client/client/src/descriptor/index.html +++ b/client/client/src/descriptor/index.html @@ -8,7 +8,7 @@
{{descriptor.client.id}}
{{descriptor.client.name}}
{{descriptor.client.phone}}
- +
diff --git a/client/client/src/descriptor/index.js b/client/client/src/descriptor/index.js index d33bb5bcd..8c2da7404 100644 --- a/client/client/src/descriptor/index.js +++ b/client/client/src/descriptor/index.js @@ -6,11 +6,12 @@ export const COMPONENT = { template: require('./index.html'), controllerAs: 'descriptor', bindings: { - client: '<' + client: '<', + active: '<' }, controller: function($http, $scope) { var self = this; - $scope.$watch('descriptor.client.active', function(newValue, oldValue) { + $scope.$watch('descriptor.active', function(newValue, oldValue) { if (oldValue !== undefined) $http.put(`/client/api/Clients/${self.client.id}/activate`); }); diff --git a/client/core/src/switch/switch.mdl.html b/client/core/src/switch/switch.mdl.html index 815bff86a..5b6e08ca3 100644 --- a/client/core/src/switch/switch.mdl.html +++ b/client/core/src/switch/switch.mdl.html @@ -1,4 +1,4 @@ \ No newline at end of file