Files
outline/app/stores/AuthenticationProvidersStore.ts
Tom Moor 57c110dbe5 chore: Upgrade MobX (#13554)
* Upgrade Mobx

* fix: Enforce MobX action boundaries

* fix: Wrap static observable updates in actions

* Remove iteration tests
2026-09-02 20:31:37 -04:00

19 lines
621 B
TypeScript

import { orderBy } from "es-toolkit/compat";
import { override } from "mobx";
import AuthenticationProvider from "~/models/AuthenticationProvider";
import type RootStore from "./RootStore";
import Store, { RPCAction } from "./base/Store";
export default class AuthenticationProvidersStore extends Store<AuthenticationProvider> {
actions = [RPCAction.List, RPCAction.Update, RPCAction.Delete];
constructor(rootStore: RootStore) {
super(rootStore, AuthenticationProvider);
}
@override
get orderedData(): AuthenticationProvider[] {
return orderBy(Array.from(this.data.values()), ["desc", "asc"]);
}
}