Files
outline/app/stores/WebhookSubscriptionStore.ts
T
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

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);
}
}