Fixes POCONSOLE-57, Adds Delete All Tag Data button to Config page
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user