This commit restores the onHashChange functionality, using an on-demand reverse map (there really aren't that many objects in the nav tree) to make sure all of the parent entities are also listed in the "expanded" listing to make sure the target object is still visible. Along the way, several type lever errors were corrected. Two major pieces of functionality were extracted from the Sidebar function as they're mostly consumers/filters of the information provided, and don't need to be in the Sidebar itself.
13 lines
415 B
TypeScript
13 lines
415 B
TypeScript
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
|
|
|
|
import { PropertymappingsApi } from "@goauthentik/api";
|
|
|
|
import { createTypesController } from "./GenericTypesController";
|
|
|
|
export const PropertyMappingsController = createTypesController(
|
|
() => new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsAllTypesList(),
|
|
"/core/property-mappings",
|
|
);
|
|
|
|
export default PropertyMappingsController;
|