import { gettext } from "django";
import { customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { Provider } from "../../api";
import { AdminURLManager } from "../../api/legacy";
import "../../elements/buttons/ModalButton";
import "../../elements/Spinner";
@customElement("ak-provider-related-application")
export class RelatedApplicationButton extends LitElement {
@property({attribute: false})
provider?: Provider;
render(): TemplateResult {
if (this.provider?.assignedApplicationSlug) {
return html`
${this.provider.assignedApplicationName}
`;
}
return html`
${gettext("Create")}
`;
}
}