Resolved the time to leave date issue field to support all browsers.
Resolved Export and Import Policy Functionality.
Added few GUI cosmetic fixes.
Issue-Id : POLICY-221
Change-Id: I920a4d9c8e16ae1cffcd13df3319e109a992ba55
Signed-off-by: rb7147 <rb7147@att.com>
30 files changed:
policyData.setTtlDate("NA");
}else{
String dateTTL = policyData.getTtlDate();
policyData.setTtlDate("NA");
}else{
String dateTTL = policyData.getTtlDate();
- String newDate = convertDate(dateTTL, false);
+ String newDate = convertDate(dateTTL);
policyData.setTtlDate(newDate);
}
policyData.setTtlDate(newDate);
}
getDomain().replaceAll("[/\\\\.]", ":"), "xacml", "policy", "id", UUID.randomUUID());
}
getDomain().replaceAll("[/\\\\.]", ":"), "xacml", "policy", "id", UUID.randomUUID());
}
- public String convertDate(String dateTTL, boolean portalType) {
+ public String convertDate(String dateTTL) {
String formateDate = null;
String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
+ if(dateTTL.contains("/")){
+ formateDate = dateTTL.replace("/", "-");
policyAdapter.setGuard(value);
}
if ("TTLDate".equals(attributeId) && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if ("TTLDate".equals(attributeId) && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
}
}
policyAdapter.setTtlDate(newDate);
}
}
}
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
// This method generates the UI from rule configuration
public void paramUIGenerate(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
String data = entity.getConfigurationData().getConfigBody();
// This method generates the UI from rule configuration
public void paramUIGenerate(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
String data = entity.getConfigurationData().getConfigBody();
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
}
policyAdapter.setTtlDate(newDate);
}
}
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
}
policyAdapter.setTtlDate(newDate);
}
}
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
-
private String readClosedLoopJSONFile(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
ObjectMapper mapper = new ObjectMapper();
try {
private String readClosedLoopJSONFile(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
ObjectMapper mapper = new ObjectMapper();
try {
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
if (attributeId.equals("ServiceType")){
policyAdapter.setTtlDate(newDate);
}
if (attributeId.equals("ServiceType")){
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
-
protected void readClosedLoopJSONFile(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
ObjectMapper mapper = new ObjectMapper();
try {
protected void readClosedLoopJSONFile(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
ObjectMapper mapper = new ObjectMapper();
try {
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
}
policyAdapter.setTtlDate(newDate);
}
}
-
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date = dateTTL.split("T");
- String[] parts = date[0].split("-");
-
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- return formateDate;
- }
public static Map<String, String> convert(String str, String split) {
Map<String, String> map = new HashMap<>();
public static Map<String, String> convert(String str, String split) {
Map<String, String> map = new HashMap<>();
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
}
policyAdapter.setTtlDate(newDate);
}
}
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
-
@RequestMapping(value={"/policyController/ViewFWPolicyRule.htm"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
public void setFWViewRule(HttpServletRequest request, HttpServletResponse response){
try {
@RequestMapping(value={"/policyController/ViewFWPolicyRule.htm"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
public void setFWViewRule(HttpServletRequest request, HttpServletResponse response){
try {
private ArrayList<Object> attributeList;
boolean isValidForm = false;
private ArrayList<Object> attributeList;
boolean isValidForm = false;
- private String convertDate(String dateTTL, boolean portalType) {
- String formateDate = null;
- String[] date;
- String[] parts;
-
- if (portalType){
- parts = dateTTL.split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0] + "T05:00:00.000Z";
- } else {
- date = dateTTL.split("T");
- parts = date[0].split("-");
- formateDate = parts[2] + "-" + parts[1] + "-" + parts[0];
- }
- return formateDate;
- }
-
public void prePopulateBaseConfigPolicyData(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
attributeList = new ArrayList<>();
if (policyAdapter.getPolicyData() instanceof PolicyType) {
public void prePopulateBaseConfigPolicyData(PolicyRestAdapter policyAdapter, PolicyEntity entity) {
attributeList = new ArrayList<>();
if (policyAdapter.getPolicyData() instanceof PolicyType) {
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
policyAdapter.setGuard(value);
}
if (attributeId.equals("TTLDate") && !value.contains("NA")){
- String newDate = convertDate(value, true);
+ PolicyController controller = new PolicyController();
+ String newDate = controller.convertDate(value);
policyAdapter.setTtlDate(newDate);
}
if (attributeId.equals("ConfigName")){
policyAdapter.setTtlDate(newDate);
}
if (attributeId.equals("ConfigName")){
public static String getFile() {
return file;
}
public static String getFile() {
return file;
}
+
+ public String convertDate(String dateTTL) {
+ String formateDate = null;
+ if(dateTTL.contains("-")){
+ formateDate = dateTTL.replace("-", "/");
+ }
+ return formateDate;
+ }
package org.onap.policy.controller;
package org.onap.policy.controller;
+import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
+import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
Iterator<Row> rowIterator = datatypeSheet.iterator();
while (rowIterator.hasNext()) {
Iterator<Row> rowIterator = datatypeSheet.iterator();
while (rowIterator.hasNext()) {
policyEntity = new PolicyEntity();
configurationDataEntity = new ConfigurationDataEntity();
actionBodyEntity = new ActionBodyEntity();
policyEntity = new PolicyEntity();
configurationDataEntity = new ConfigurationDataEntity();
actionBodyEntity = new ActionBodyEntity();
configurationDataEntity.setCreatedBy(userId);
configurationDataEntity.setModifiedBy(userId);
commonClassDao.save(configurationDataEntity);
configurationDataEntity.setCreatedBy(userId);
configurationDataEntity.setModifiedBy(userId);
commonClassDao.save(configurationDataEntity);
+ try(FileWriter fw = new FileWriter(PolicyController.getConfigHome() + File.separator + configName)){
+ BufferedWriter bw = new BufferedWriter(fw);
+ bw.write(configurationDataEntity.getConfigBody());
+ bw.close();
+ } catch (IOException e) {
+ logger.error("Exception Occured While cloning the configuration file",e);
+ }
}
if(actionExists){
actionBodyEntity.setDeleted(false);
actionBodyEntity.setCreatedBy(userId);
actionBodyEntity.setModifiedBy(userId);
commonClassDao.save(actionBodyEntity);
}
if(actionExists){
actionBodyEntity.setDeleted(false);
actionBodyEntity.setCreatedBy(userId);
actionBodyEntity.setModifiedBy(userId);
commonClassDao.save(actionBodyEntity);
+ try(FileWriter fw = new FileWriter(PolicyController.getActionHome() + File.separator + actionBodyEntity.getActionBodyName())) {
+ BufferedWriter bw = new BufferedWriter(fw);
+ bw.write(actionBodyEntity.getActionBody());
+ bw.close();
+ } catch (IOException e) {
+ logger.error("Exception Occured While cloning the configuration file",e);
+ }
}
if(configName != null){
if(configName.contains("Config_")){
}
if(configName != null){
if(configName.contains("Config_")){
<script src= "app/fusion/external/b2b/js/b2b-angular/b2b-library.min.js"></script>
<script src= "app/fusion/external/jquery/dist/jquery.min.js"></script>
<script src= "app/policyApp/libs/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src= "app/fusion/external/b2b/js/b2b-angular/b2b-library.min.js"></script>
<script src= "app/fusion/external/jquery/dist/jquery.min.js"></script>
<script src= "app/policyApp/libs/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
+ <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
+ <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!---------------------------Angular Gridster-------------------------------->
<link rel="stylesheet" href="app/fusion/external/angular-gridster/dist/angular-gridster.min.css">
<!---------------------------Angular Gridster-------------------------------->
<link rel="stylesheet" href="app/fusion/external/angular-gridster/dist/angular-gridster.min.css">
return $('#' + id).modal(hide ? 'hide' : 'show');
};
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
+
$scope.validateSuccess = true;
var readValue = $scope.temp.policy.readOnly;
if(readValue){
$scope.validateSuccess = true;
var readValue = $scope.temp.policy.readOnly;
if(readValue){
return $('#' + id).modal(hide ? 'hide' : 'show');
};
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
+
PolicyAppService.getData('getDictionary/get_BRMSControllerDataByName').then(function (data) {
var j = data;
$scope.data = JSON.parse(j.data);
PolicyAppService.getData('getDictionary/get_BRMSControllerDataByName').then(function (data) {
var j = data;
$scope.data = JSON.parse(j.data);
return $('#' + id).modal(hide ? 'hide' : 'show');
};
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
+
PolicyAppService.getData('getDictionary/get_OnapNameDataByName').then(function (data) {
var j = data;
$scope.data = JSON.parse(j.data);
PolicyAppService.getData('getDictionary/get_OnapNameDataByName').then(function (data) {
var j = data;
$scope.data = JSON.parse(j.data);
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
if($scope.temp.policy.triggerTrapSignatures == undefined){
$scope.temp.policy.triggerTrapSignatures = [];
if($scope.temp.policy.triggerTrapSignatures == undefined){
$scope.temp.policy.triggerTrapSignatures = [];
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
PolicyAppService.getData('getDictionary/get_OnapNameDataByName').then(function (data) {
var j = data;
PolicyAppService.getData('getDictionary/get_OnapNameDataByName').then(function (data) {
var j = data;
return $('#' + id).modal(hide ? 'hide' : 'show');
};
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
+
if ($scope.temp.policy.editPolicy != undefined|| $scope.temp.policy.readOnly != undefined){
if ($scope.temp.policy.configName == undefined){
$scope.isCheck = false;
if ($scope.temp.policy.editPolicy != undefined|| $scope.temp.policy.readOnly != undefined){
if ($scope.temp.policy.configName == undefined){
$scope.isCheck = false;
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
$scope.modal = function(id, hide) {
return $('#' + id).modal(hide ? 'hide' : 'show');
};
+
+ $('#ttlDate').datepicker({
+ dateFormat: 'dd/mm/yy',
+ changeMonth: true,
+ changeYear: true,
+ onSelect: function(date) {
+ angular.element($('#ttlDate')).triggerHandler('input');
+ }
+ });
PolicyAppService.getData('getDictionary/get_SecurityZoneDataByName').then(function (data) {
var j = data;
PolicyAppService.getData('getDictionary/get_SecurityZoneDataByName').then(function (data) {
var j = data;
<div class="well">
<div class="form-group row">
<div class="form-group col-sm-2">
<div class="well">
<div class="form-group row">
<div class="form-group col-sm-2">
- <label>Component Attributes:</label><br>
+ <label>Component Attributes:<sup><b>*</b></sup></label><br>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
<i class="fa fa-plus"></i>
<button type="button" class="btn btn-default"
ng-disabled="temp.policy.readOnly" ng-click="addNewChoice()">
<i class="fa fa-plus"></i>
</div>
<div class="form-group row">
<div class="form-group col-sm-3">
</div>
<div class="form-group row">
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
</div>
<div class="form-group row">
<div class="form-group col-sm-3">
</div>
<div class="form-group row">
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
title="Enter the Config Name without any spaces" />
</div>
<div class="form-group col-sm-3">
title="Enter the Config Name without any spaces" />
</div>
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" ng-disabled="temp.policy.readOnly" name="ttlDate" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" ng-disabled="temp.policy.readOnly" name="ttlDate"
ng-model="temp.policy.ttlDate" />
</div>
</div>
ng-model="temp.policy.ttlDate" />
</div>
</div>
ng-model="temp.policy.jsonBodyData.vDNS"> vDNS</input>
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.jsonBodyData.vDNS"> vDNS</input>
</div>
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
</div>
ng-model="temp.policy.ttlDate" />
</div>
</div>
required pattern="\S+" title="OnapName is required"></select>
</div>
<div class="form-group col-sm-3">
required pattern="\S+" title="OnapName is required"></select>
</div>
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
</div>
<div class="well">
<div class="form-group row">
</div>
<div class="well">
<div class="form-group row">
- <label>Attributes:<sup><b>*</b></sup></label>
+ <label>Attributes:<sup><b></b></sup></label>
<div
ng-repeat="(key, data) in temp.policy.attributeFields.attributes">
<div class="well">
<div
ng-repeat="(key, data) in temp.policy.attributeFields.attributes">
<div class="well">
required pattern="\S+" title="OnapName is required"></select>
</div>
<div class="form-group col-sm-3">
required pattern="\S+" title="OnapName is required"></select>
</div>
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.configName" required />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.configName" required />
</div>
<div class="form-group col-sm-3">
- <label>Time to Live Date:</label> <input type="date"
- class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly" class="date"
+ <label>Time to Live Date:</label> <input type="text" id="ttlDate"
+ class="form-control" name="ttlDate" ng-disabled="temp.policy.readOnly"
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
ng-model="temp.policy.ttlDate" />
</div>
<div class="form-group col-sm-3">
return currentPath.indexOf(path) !== -1;
};
return currentPath.indexOf(path) !== -1;
};
- $scope.watch = function(item){
+ $scope.watchPolicy = function(item){
var uuu = "watchPolicy";
var data = {name : item.model.name,
path : item.model.path};
var uuu = "watchPolicy";
var data = {name : item.model.name,
path : item.model.path};
<div ng-show="!item.inprocess">
<div ng-show="!item.inprocess">
- <button class="btn btn-sm btn-default" data-toggle="modal" data-target="#watch" ng-click="watch(item)" title="Watch">
+ <button class="btn btn-sm btn-default" data-toggle="modal" data-target="#watch" ng-click="watchPolicy(item)" title="Watch">
<i class="glyphicon glyphicon-eye-open"></i>
</button>
</div>
\ No newline at end of file
<i class="glyphicon glyphicon-eye-open"></i>
</button>
</div>
\ No newline at end of file
<th class="hidden-sm hidden-xs">
<a href="">
Watch Policy
<th class="hidden-sm hidden-xs">
<a href="">
Watch Policy
- <span class="sortorder" ng-class="{reverse:reverse}"></span>
+ <span ng-class="{reverse:reverse}"></span>
</a>
</th>
<!-- <th class="text-right">
</a>
</th>
<!-- <th class="text-right">