Révision 2c8d373c src/app/app.component.ts
src/app/app.component.ts | ||
---|---|---|
43 | 43 |
this.routerExtensions.navigate(["/upgrade"]); |
44 | 44 |
return; |
45 | 45 |
} |
46 |
|
|
47 |
if (this.email == "" || this.pseudo == "") { |
|
48 |
// alert("L'application n'est pas configurée ...") |
|
49 |
this._activatedUrl = "/settings"; |
|
50 |
this.routerExtensions.navigate(["/settings"]); |
|
51 |
} |
|
52 |
else { |
|
53 |
this._activatedUrl = "/home"; |
|
54 |
} |
|
55 |
|
|
46 | 56 |
}, (e) => { |
47 | 57 |
console.log("getJSON Error", e); |
58 |
dialogs.alert({ |
|
59 |
title: "Erreur de communication", |
|
60 |
message: "Le serveur principal de ClicAlbum est injoignable, veuillez re-essayer dans quelques minutes et si ça ne marche toujours pas envoyez nous un petit message à contact@abuledu.org merci :-)", |
|
61 |
okButtonText: "Ok" |
|
62 |
}).then(() => { |
|
63 |
}); |
|
48 | 64 |
}); |
49 | 65 |
|
50 |
if (this.email == "" || this.pseudo == "") { |
|
51 |
// alert("L'application n'est pas configurée ...") |
|
52 |
this._activatedUrl = "/settings"; |
|
53 |
this.routerExtensions.navigate(["/settings"]); |
|
54 |
} |
|
55 |
else { |
|
56 |
this._activatedUrl = "/home"; |
|
57 |
} |
|
58 | 66 |
this._sideDrawerTransition = new SlideInOnTopTransition(); |
59 | 67 |
|
60 | 68 |
this.router.events |
Formats disponibles : Unified diff