Filter non-custom integrations from Custom Integrations list

This commit is contained in:
Kevin Ansfield 2019-02-15 14:18:05 +00:00
parent a13df41940
commit ccf5e16153
2 changed files with 5 additions and 2 deletions

View File

@ -17,8 +17,10 @@ export default Controller.extend({
// filter over the live query so that the list is automatically updated
// as integrations are added/removed
integrations: computed('_allIntegrations.@each.isNew', function () {
return this._allIntegrations.rejectBy('isNew', true);
integrations: computed('_allIntegrations.@each.{isNew,type}', function () {
return this._allIntegrations.reject((integration) => {
return integration.isNew || integration.type !== 'custom';
});
}),
// use ember-concurrency so that we can use the derived state to show

View File

@ -9,6 +9,7 @@ export default Model.extend(ValidationEngine, {
name: attr('string'),
slug: attr('string'),
type: attr('string'),
iconImage: attr('string'),
description: attr('string'),
createdAtUTC: attr('moment-utc'),