add/remove buttons working now.

This commit is contained in:
Shannon
2014-05-19 20:26:25 +10:00
parent 2e777121d6
commit fa002ec3b2
2 changed files with 3 additions and 3 deletions
@@ -41,7 +41,7 @@ function segmentDashboardController($scope, umbRequestHelper, $log, $http, formH
}
$scope.removeItem = function(item) {
//TODO: Get this going
$scope.config.values = _.reject($scope.config.values, function(i) { return i === item; });
}
$scope.save = function () {
@@ -38,12 +38,12 @@
</umb-control-group>
<umb-control-group label="Segment Key" alias="key" description="The key to store for this segment match">
<input type="text" name="matchExpression" ng-model="$parent.item.key" required />
<input type="text" name="key" ng-model="$parent.item.key" required />
<span class="help-inline" val-msg-for="key" val-toggle-msg="required">Required</span>
</umb-control-group>
<umb-control-group label="Segment Value" alias="value" description="The value to store for this segment match">
<input type="text" name="matchExpression" ng-model="$parent.item.value" required />
<input type="text" name="value" ng-model="$parent.item.value" required />
<span class="help-inline" val-msg-for="value" val-toggle-msg="required">Required</span>
</umb-control-group>