mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Filter non-custom integrations from Custom Integrations list
This commit is contained in:
parent
a13df41940
commit
ccf5e16153
@ -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
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user