add/remove buttons working now.
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user