Ask for the user's name on first launch through a /welcome route, store it in the preferences namespace via a user service, and redirect between welcome and the dashboard based on whether a name exists. Replace the hardcoded greeting name and make it editable in place, with save/cancel handling and a first-run prompt matching the dashboard style.
8 lines
159 B
Plaintext
8 lines
159 B
Plaintext
import { pageTitle } from 'ember-page-title';
|
|
import Welcome from '../components/welcome.gjs';
|
|
|
|
<template>
|
|
{{pageTitle "Welcome"}}
|
|
<Welcome />
|
|
</template>
|