log out screen
This commit is contained in:
@@ -87,7 +87,7 @@ export class ProfilePage implements OnInit {
|
||||
text: "Log out",
|
||||
handler: () => {
|
||||
this.sessionDataProviderService.DestroySessionOnLogout();
|
||||
this.router.navigate(['login']);
|
||||
this.router.navigate(['logout']);
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -95,27 +95,27 @@ export class ProfilePage implements OnInit {
|
||||
await alert.present();
|
||||
}
|
||||
|
||||
async requestLogout() {
|
||||
const alert = await this.alertController.create({
|
||||
header: "Log out",
|
||||
message: "Confirm you are ready to log out now.",
|
||||
buttons: [
|
||||
{
|
||||
text: "Cancel",
|
||||
role: "cancel",
|
||||
handler: () => {
|
||||
// this.getMyOffersData();
|
||||
},
|
||||
},
|
||||
{
|
||||
text: "Log out",
|
||||
handler: () => {
|
||||
this.sessionDataProviderService.DestroySessionOnLogout();
|
||||
this.router.navigate(['login']);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
await alert.present();
|
||||
}
|
||||
// async requestLogout() {
|
||||
// const alert = await this.alertController.create({
|
||||
// header: "Log out",
|
||||
// message: "Confirm you are ready to log out now.",
|
||||
// buttons: [
|
||||
// {
|
||||
// text: "Cancel",
|
||||
// role: "cancel",
|
||||
// handler: () => {
|
||||
// // this.getMyOffersData();
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// text: "Log out",
|
||||
// handler: () => {
|
||||
// this.sessionDataProviderService.DestroySessionOnLogout();
|
||||
// this.router.navigate(['logout']);
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
// });
|
||||
// await alert.present();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user