disabling actions for threshold alerts that have default actionType (#31129) (#31164)

* disabling actions for threshold alerts that have default actionType

* adding comment per PR feedback
This commit is contained in:
Bill McConaghy 2019-02-14 12:21:29 -05:00 committed by GitHub
parent 5b40f3a102
commit 23089a5315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,11 @@ app.directive('actionTypeSelect', function ($injector) {
this.loadActionTypes()
.then(actionTypes => {
this.actionTypes = actionTypes;
this.actionTypes = actionTypes.filter((actionType) => {
// 'Action' is the default action type. If an action has the default then it's
// not fully implemented and shouldn't be presented to the user.
return actionType.typeName !== 'Action';
});
});
}