mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +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
|
// filter over the live query so that the list is automatically updated
|
||||||
// as integrations are added/removed
|
// as integrations are added/removed
|
||||||
integrations: computed('_allIntegrations.@each.isNew', function () {
|
integrations: computed('_allIntegrations.@each.{isNew,type}', function () {
|
||||||
return this._allIntegrations.rejectBy('isNew', true);
|
return this._allIntegrations.reject((integration) => {
|
||||||
|
return integration.isNew || integration.type !== 'custom';
|
||||||
|
});
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// use ember-concurrency so that we can use the derived state to show
|
// 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'),
|
name: attr('string'),
|
||||||
slug: attr('string'),
|
slug: attr('string'),
|
||||||
|
type: attr('string'),
|
||||||
iconImage: attr('string'),
|
iconImage: attr('string'),
|
||||||
description: attr('string'),
|
description: attr('string'),
|
||||||
createdAtUTC: attr('moment-utc'),
|
createdAtUTC: attr('moment-utc'),
|
||||||
|
Loading…
Reference in New Issue
Block a user