Skip to content

Commit

Permalink
Remove database purge option
Browse files Browse the repository at this point in the history
Have removed the option to purge DB from
UI (Monitor/Infra/Database Nodes)

DocImpact

Closes-Bug: #1697732

Change-Id: I39084b7eb365e120b41cf642989f3aba64c46c00
  • Loading branch information
Pruthviraj M S committed Jul 11, 2017
1 parent 0deee7c commit 9da06e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ define([
});
};

self.purgeAnalyticsDB = function (purgePercentage) {
/*self.purgeAnalyticsDB = function (purgePercentage) {
var ajaxConfig = {
type: "GET",
url: "/api/analytics/db/purge?purge_input=" + purgePercentage
Expand All @@ -2297,7 +2297,7 @@ define([
var errorMsg = contrail.parseErrorMsgFromXHR(response);
showInfoWindow(errorMsg, "Error");
});
};
};*/

self.doAjaxCallsForNodeDetails = function (options) {
var ajaxConfigs = getValueByJsonPath(options, 'ajaxConfigList',[]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ define(['underscore', 'contrail-view', 'legend-view', 'monitor-infra-databasenod
sortField:"dbSpaceUsed"
}
];
var dbPurgeTemplate = contrail.getTemplate4Id('purge-action-template');
//var dbPurgeTemplate = contrail.getTemplate4Id('purge-action-template');
var gridElementConfig = {
header : {
title : {
text : ctwl.DATABASENODE_SUMMARY_TITLE
},
customControls: [dbPurgeTemplate()]
}/*,
customControls: [dbPurgeTemplate()]*/
},
columnHeader : {
columns : columns
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
-->
<script type="text/x-handlebars-template" id="purge-action-template">
<!--<script type="text/x-handlebars-template" id="purge-action-template">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-adjust"></i>
</a>
Expand Down Expand Up @@ -37,4 +37,4 @@
</a>
</li>
</ul>
</script>
</script>-->

0 comments on commit 9da06e5

Please sign in to comment.