log out screen

This commit is contained in:
CHIEFSOFT\ameye
2023-10-14 07:39:20 -04:00
parent 4371ce39e5
commit f1ad1f3cbf
9 changed files with 175 additions and 24 deletions
+24 -24
View File
@@ -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();
// }
}