Fixes POCONSOLE-57, Adds Delete All Tag Data button to Config page

This commit is contained in:
Patrick McDonagh
2016-07-27 17:30:49 -05:00
parent 67a5ef3ee5
commit 3dda1c48eb
2 changed files with 14 additions and 0 deletions

View File

@@ -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);
});
};
});

View File

@@ -32,6 +32,13 @@
</div>
</div>
<div class="row">
<div class="col-md-12">
<button ng-click="deleteAllTagData()" class="btn btn-large btn-danger"><i class="fa fa-trash-o"></i> Delete All Stored Data</button>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h1>Devices</h1>