Skip to content

Commit

Permalink
Implemented: support to move to launchpad from the app(#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed May 23, 2024
1 parent 0d439ae commit 9f83ab2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"Group": "Group",
"Group history": "Group history",
"Group status updated": "Group status updated",
"Go to Launchpad": "Go to Launchpad",
"Go to OMS": "Go to OMS",
"greater": "greater",
"greater than or equal to": "greater than or equal to",
Expand Down
8 changes: 8 additions & 0 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
</ion-card-header>
</ion-item>
<ion-button color="danger" @click="logout()">{{ translate("Logout") }}</ion-button>
<ion-button fill="outline" @click="goToLaunchpad()">
{{ translate("Go to Launchpad") }}
<ion-icon slot="end" :icon="openOutline" />
</ion-button>
<!-- Commenting this code as we currently do not have reset password functionality -->
<!-- <ion-button fill="outline" color="medium">{{ "Reset password") }}</ion-button> -->
</ion-card>
Expand Down Expand Up @@ -144,6 +148,10 @@ function logout() {
function getDateTime(time: any) {
return time ? DateTime.fromMillis(time).toLocaleString({ ...DateTime.DATETIME_MED, hourCycle: "h12" }) : "";
}
function goToLaunchpad() {
window.location.href = `${process.env.VUE_APP_LOGIN_URL}`
}
</script>

<style scoped>
Expand Down

0 comments on commit 9f83ab2

Please sign in to comment.