mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fbd4ded5b4
* Gemini first-pass * Prevent post-connect login * stash * stash * Add OIDC logo * Separate security page * test * Update icon * test * ui * Add extra guards for disabling auth provider * refactor * test
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
import orderBy from "lodash/orderBy";
|
|
import { computed } 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);
|
|
}
|
|
|
|
@computed
|
|
get orderedData(): AuthenticationProvider[] {
|
|
return orderBy(Array.from(this.data.values()), ["desc", "asc"]);
|
|
}
|
|
}
|