mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Install helps docs as part of onboarding process
Our own docs are installed as sample data! Refactored search reindexing code.
This commit is contained in:
parent
411f64c359
commit
3621e2fb79
26 changed files with 1957 additions and 1280 deletions
|
@ -13,6 +13,7 @@ import { inject as service } from '@ember/service';
|
|||
import Route from '@ember/routing/route';
|
||||
|
||||
export default Route.extend({
|
||||
globalSvc: service('global'),
|
||||
session: service(),
|
||||
localStorage: service(),
|
||||
|
||||
|
@ -27,7 +28,15 @@ export default Route.extend({
|
|||
model({ token }) {
|
||||
this.get("session").authenticate('authenticator:documize', decodeURIComponent(token))
|
||||
.then(() => {
|
||||
this.transitionTo('folders');
|
||||
if (this.get('localStorage').isFirstRun()) {
|
||||
this.get('globalSvc').onboard().then(() => {
|
||||
this.transitionTo('folders');
|
||||
}).catch(() => {
|
||||
this.transitionTo('folders');
|
||||
});
|
||||
} else {
|
||||
this.transitionTo('folders');
|
||||
}
|
||||
}, () => {
|
||||
this.transitionTo('auth.login');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue