From 3dda1c48eb7cad103f2a760b62029d293c9b12e4 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Wed, 27 Jul 2016 17:30:49 -0500 Subject: [PATCH] Fixes POCONSOLE-57, Adds Delete All Tag Data button to Config page --- www/assets/js/ng/controller_config.js | 7 +++++++ www/assets/templates/config.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/www/assets/js/ng/controller_config.js b/www/assets/js/ng/controller_config.js index a91179d..c09a1c2 100644 --- a/www/assets/js/ng/controller_config.js +++ b/www/assets/js/ng/controller_config.js @@ -89,4 +89,11 @@ poconsole.controller('configCtrl', function($scope, Page, $log, config, devices) getDeviceTypes.then(function(d){ $scope.device_types = d.device_types; }); + + $scope.deleteAllTagData = function(){ + var deleteAllTags = tags.deleteAll(); + deleteAllTags.then(function(data){ + $log.info(data); + }); + }; }); diff --git a/www/assets/templates/config.html b/www/assets/templates/config.html index e05344c..fd1bf87 100644 --- a/www/assets/templates/config.html +++ b/www/assets/templates/config.html @@ -32,6 +32,13 @@ +
+
+ +
+
+ +

Devices