This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/pages/providers/ProviderViewPage.ts

23 lines
606 B
TypeScript
Raw Normal View History

2021-02-04 09:22:14 +00:00
import { customElement, LitElement, property } from "lit-element";
2021-02-04 08:54:00 +00:00
import { Provider } from "../../api/Providers";
import "../../elements/buttons/ModalButton";
import "../../elements/buttons/SpinnerButton";
@customElement("ak-provider-view")
export class ProviderViewPage extends LitElement {
@property()
set args(value: { [key: string]: number }) {
this.providerID = value.id;
}
2021-02-04 09:22:14 +00:00
@property({type: Number})
2021-02-04 08:54:00 +00:00
set providerID(value: number) {
Provider.get(value).then((app) => (this.provider = app));
}
@property({ attribute: false })
provider?: Provider;
}