iss #19 - Friendly names for SLA properties.

This commit is contained in:
Alexander Zobnin
2015-07-25 17:23:35 +03:00
parent 53d6b60e6f
commit d2db53fcfb
2 changed files with 5 additions and 5 deletions

View File

@@ -68,7 +68,7 @@
<select class="tight-form-input input-medium"
ng-change="selectSLAProperty()"
ng-model="target.slaProperty"
ng-options="slaProperty for slaProperty in slaPropertyList track by slaProperty">
ng-options="slaProperty.name for slaProperty in slaPropertyList track by slaProperty.name">
<option value="">-- SLA property --</option>
</select>
</li>

View File

@@ -15,10 +15,10 @@ function (angular, _) {
$scope.targetLetters = targetLetters;
if ($scope.target.ITService) {
$scope.slaPropertyList = [
"sla",
"okTime",
"problemTime",
"downtimeTime"
{name: "SLA", property: "sla"},
{name: "OK time", property: "okTime"},
{name: "Problem time", property: "problemTime"},
{name: "Down time", property: "downtimeTime"}
];
$scope.itserviceList = [{name: "test"}];
$scope.updateITServiceList();