From 0c930aea0425fb91f2b410a7544bca4ed0af24ed Mon Sep 17 00:00:00 2001 From: JesmoDev Date: Thu, 19 May 2022 09:27:09 +0200 Subject: [PATCH] Update installer-installing.element.ts --- .../installer/installer-installing.element.ts | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer-installing.element.ts b/src/Umbraco.Web.UI.Client/src/installer/installer-installing.element.ts index 86513ec5b4..305b276620 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/installer-installing.element.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/installer-installing.element.ts @@ -1,17 +1,9 @@ import { css, CSSResultGroup, html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; - -import { postInstall } from '../api/fetcher'; - @customElement('umb-installer-installing') export class UmbInstallerInstalling extends LitElement { static styles: CSSResultGroup = [ css` - uui-input, - uui-input-password { - width: 100%; - } - #log { border: 1px solid #b3b3b3; margin-top: 16px; @@ -30,38 +22,6 @@ export class UmbInstallerInstalling extends LitElement { `, ]; - private _handleSubmit = (e: SubmitEvent) => { - e.preventDefault(); - - const form = e.target as HTMLFormElement; - if (!form) return; - - const isValid = form.checkValidity(); - if (!isValid) return; - - const formData = new FormData(form); - - const name = formData.get('name') as string; - const email = formData.get('email') as string; - const password = formData.get('password') as string; - const news = formData.has('news'); - - this._install(name, email, password, news); - }; - - private async _install(name: string, email: string, password: string, news: boolean) { - console.log('Installing', name, email, password, news); - - try { - await postInstall({}); - - // TODO: Change to redirect when router has been added. - this.dispatchEvent(new CustomEvent('install', { bubbles: true, composed: true })); - } catch (error) { - console.log(error); - } - } - render() { return html`

Installing Umbraco