diff --git a/web/projects/setup-wizard/src/app/components/documentation.component.ts b/web/projects/setup-wizard/src/app/components/documentation.component.ts index 9d127e4c4..b832ffa5d 100644 --- a/web/projects/setup-wizard/src/app/components/documentation.component.ts +++ b/web/projects/setup-wizard/src/app/components/documentation.component.ts @@ -39,7 +39,9 @@ import { DocsLinkDirective } from '@start9labs/shared' " >
-

Important!

+

+ Root Certificate Authority +

Download your server's Root CA and - follow the instructions + follow instructions to establish a secure connection with your server.

@@ -84,15 +86,15 @@ import { DocsLinkDirective } from '@start9labs/shared' " >

- Access from home (LAN) + Permanent Local Address

- Visit the address below when you are connected to the same WiFi or - Local Area Network (LAN) as your server. + You must be connected to the same Local Area Network (LAN) as your + server to access this address.

- -

- Access on the go (Tor) -

-

Visit the address below when you are away from home.

-

- Note: - This address will only work from a Tor-enabled browser. - - Follow the instructions - - to get setup. -

-

- -

diff --git a/web/projects/setup-wizard/src/app/pages/success.page.ts b/web/projects/setup-wizard/src/app/pages/success.page.ts index 4d358b5f0..bea2a17c1 100644 --- a/web/projects/setup-wizard/src/app/pages/success.page.ts +++ b/web/projects/setup-wizard/src/app/pages/success.page.ts @@ -7,7 +7,7 @@ import { DOCUMENT, } from '@angular/core' import { DownloadHTMLService, ErrorService } from '@start9labs/shared' -import { TuiButton, TuiIcon, TuiSurface } from '@taiga-ui/core' +import { TuiButton, TuiIcon, TuiLoader, TuiSurface } from '@taiga-ui/core' import { TuiCardLarge } from '@taiga-ui/layout' import { DocumentationComponent } from 'src/app/components/documentation.component' import { MatrixComponent } from 'src/app/components/matrix.component' @@ -31,10 +31,16 @@ import { StateService } from 'src/app/services/state.service'

You can now safely unplug your old StartOS data drive

} +

+ http://start.local was for setup purposes only. It will no longer + work. +

+ } @@ -242,7 +241,6 @@ export default class SystemGeneralComponent { private readonly patch = inject>(PatchDB) private readonly api = inject(ApiService) private readonly isTor = inject(ConfigService).isTor() - private readonly document = inject(DOCUMENT) private readonly dialog = inject(DialogService) private readonly i18n = inject(i18nPipe) private readonly injector = inject(INJECTOR) @@ -326,28 +324,6 @@ export default class SystemGeneralComponent { .subscribe(() => this.resetTor(this.wipe)) } - async tryToggleKiosk() { - if ( - this.server()?.kiosk && - ['localhost', '127.0.0.1'].includes(this.document.location.hostname) - ) { - return this.dialog - .openConfirm({ - label: 'Warning', - data: { - content: - 'You are currently using a kiosk. Disabling Kiosk Mode will result in the kiosk disconnecting.', - yes: 'Disable', - no: 'Cancel', - }, - }) - .pipe(filter(Boolean)) - .subscribe(async () => this.toggleKiosk()) - } - - this.toggleKiosk() - } - async onRepair() { this.dialog .openConfirm({ @@ -370,7 +346,7 @@ export default class SystemGeneralComponent { }) } - private async toggleKiosk() { + async toggleKiosk() { const kiosk = this.server()?.kiosk const loader = this.loader @@ -379,6 +355,11 @@ export default class SystemGeneralComponent { try { await this.api.toggleKiosk(!kiosk) + this.dialog + .openAlert('This change will take effect after the next boot', { + label: 'Restart to apply', + }) + .subscribe() } catch (e: any) { this.errorService.handleError(e) } finally { diff --git a/web/projects/ui/src/app/routes/portal/routes/system/routes/password/password.component.ts b/web/projects/ui/src/app/routes/portal/routes/system/routes/password/password.component.ts index 00d9d20f0..09e85b9f1 100644 --- a/web/projects/ui/src/app/routes/portal/routes/system/routes/password/password.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/system/routes/password/password.component.ts @@ -1,16 +1,20 @@ -import { ChangeDetectionStrategy, Component, inject } from '@angular/core' +import { + ChangeDetectionStrategy, + Component, + inject, + viewChild, +} from '@angular/core' import { toSignal } from '@angular/core/rxjs-interop' import { RouterLink } from '@angular/router' import { verify } from '@start9labs/argon2' import { - DialogService, ErrorService, i18nKey, i18nPipe, LoadingService, } from '@start9labs/shared' import { ISB } from '@start9labs/start-sdk' -import { TuiButton, TuiTitle } from '@taiga-ui/core' +import { TuiAlertService, TuiButton, TuiTitle } from '@taiga-ui/core' import { TuiHeader } from '@taiga-ui/layout' import { PatchDB } from 'patch-db-client' import { from } from 'rxjs' @@ -70,13 +74,14 @@ import { getServerInfo } from 'src/app/utils/get-server-info' ], }) export default class SystemPasswordComponent { - private readonly dialog = inject(DialogService) + private readonly alerts = inject(TuiAlertService) private readonly loader = inject(LoadingService) private readonly errorService = inject(ErrorService) private readonly patch = inject>(PatchDB) private readonly api = inject(ApiService) private readonly i18n = inject(i18nPipe) + readonly form = viewChild(FormComponent) readonly spec = toSignal(from(configBuilderToSpec(this.passwordSpec()))) readonly buttons = [ { @@ -119,7 +124,12 @@ export default class SystemPasswordComponent { try { await this.api.resetPassword({ oldPassword, newPassword }) - this.dialog.openAlert('Password changed').subscribe() + this.form()?.form.reset() + this.alerts + .open(this.i18n.transform('Password changed'), { + appearance: 'positive', + }) + .subscribe() } catch (e: any) { this.errorService.handleError(e) } finally {