mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
21 lines
569 B
TypeScript
21 lines
569 B
TypeScript
import { computed } from "mobx";
|
|
import WebhookSubscription from "~/models/WebhookSubscription";
|
|
import type RootStore from "./RootStore";
|
|
import Store from "./base/Store";
|
|
|
|
export default class WebhookSubscriptionsStore extends Store<WebhookSubscription> {
|
|
constructor(rootStore: RootStore) {
|
|
super(rootStore, WebhookSubscription);
|
|
}
|
|
|
|
@computed
|
|
get enabled() {
|
|
return this.orderedData.filter((subscription) => subscription.enabled);
|
|
}
|
|
|
|
@computed
|
|
get disabled() {
|
|
return this.orderedData.filter((subscription) => !subscription.enabled);
|
|
}
|
|
}
|