UI allows storage configs changes under STAGED
Change-Id: I09acf2f7ea6c2aa640c834370ca9283c6dbc083c
This commit is contained in:
parent
577056a677
commit
fa13ab39b8
|
@ -31,7 +31,7 @@ angular.module("kbWebApp").controller("StorageConfigCtrl", function($scope, $htt
|
|||
console.log("status error");
|
||||
}) : ($scope.status = "NO SESSION ID", kbCookie.setStatus(""));
|
||||
};
|
||||
var disabledStagingConfig = !1;
|
||||
var disabledStagingConfig = !1, disabledStagedConfig = !0;
|
||||
$scope.disableConfig = function(disableId) {
|
||||
$("#" + disableId).find("input,button,a,md-radio-button").each(function() {
|
||||
$(this).attr("disabled", "disabled");
|
||||
|
@ -42,8 +42,12 @@ angular.module("kbWebApp").controller("StorageConfigCtrl", function($scope, $htt
|
|||
});
|
||||
}, $scope.configStatus = function() {
|
||||
"READY" === $scope.status ? disabledStagingConfig === !0 && (disabledStagingConfig = !1,
|
||||
$scope.enableConfig("stagingConfig3"), $scope.enableConfig("getButton")) : disabledStagingConfig === !1 && (disabledStagingConfig = !0,
|
||||
$scope.disableConfig("stagingConfig3"), $scope.disableConfig("getButton"));
|
||||
disabledStagedConfig = !0, $scope.enableConfig("dashboard_general"), $scope.enableConfig("dashboard_server"),
|
||||
$scope.enableConfig("getButton")) : "STAGED" === $scope.status ? disabledStagedConfig === !0 && (disabledStagingConfig = !0,
|
||||
disabledStagedConfig = !1, $scope.disableConfig("dashboard_general"), $scope.enableConfig("dashboard_server"),
|
||||
$scope.enableConfig("getButton")) : disabledStagingConfig !== !1 && disabledStagedConfig !== !1 || (disabledStagingConfig = !0,
|
||||
disabledStagedConfig = !0, $scope.disableConfig("dashboard_general"), $scope.disableConfig("dashboard_server"),
|
||||
$scope.disableConfig("getButton"));
|
||||
}, $("#dropdownrandrw").append('<li class="divider"></li>'), $scope.storageMode = {
|
||||
randread: {
|
||||
name: "Random Read",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -33,7 +33,7 @@ permissions and limitations under the License.
|
|||
</div>
|
||||
<div id="dashboard_tabs" class="col-md-8">
|
||||
|
||||
<div id="dashboard-general" class="row" ng-show="dash1status1vis">
|
||||
<div id="dashboard_general" class="row" ng-show="dash1status1vis">
|
||||
<h4 class="page-header" style="margin-top: 5px">GENERAL CONFIGURATION</h4>
|
||||
<form name="general">
|
||||
<div class="form-group">
|
||||
|
@ -126,7 +126,7 @@ permissions and limitations under the License.
|
|||
</div>
|
||||
|
||||
|
||||
<div id="dashboard-server" class="row" ng-show="dash1status2vis" style="margin-bottom: 2%">
|
||||
<div id="dashboard_server" class="row" ng-show="dash1status2vis" style="margin-bottom: 2%">
|
||||
<h4 class="page-header" style="margin-top: 5px">LIST OF STORAGE WORKLOADS TO EXECUTE IN SEQUENCE
|
||||
<div class="btn-group" style="text-align: center;float:right">
|
||||
<a href="" class="btn btn-xs btn-primary dropdown-toggle" style="width:150px; text-align: center" data-toggle="dropdown" aria-expanded="false">
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
</div>
|
||||
|
||||
<div class="container" ng-show="tab == 1">
|
||||
<h3>KloudBuster HTTP Test Configuration</h3>
|
||||
<h3>KloudBuster Storage Test Configuration</h3>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body" style="word-wrap:break-word">
|
||||
<textarea style="font-family:Courier New, Monospace;width: 100%;height: 900px" disabled> {{from_outside_config}}</textarea>
|
||||
|
|
Loading…
Reference in New Issue