Skip to content

Commit

Permalink
Improved: type for presentLoader params and added missing label in en…
Browse files Browse the repository at this point in the history
….json
  • Loading branch information
ymaheshwari1 committed Sep 25, 2023
1 parent 2cedf20 commit 8b194c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineComponent({
}
},
methods: {
async presentLoader(options = { message: '', backdropDismiss: true }) {
async presentLoader(options = { message: '', backdropDismiss: true } as any) {
// When having a custom message remove already existing loader
if(options.message && this.loader) this.dismissLoader();
Expand Down Expand Up @@ -90,7 +90,13 @@ export default defineComponent({
}
})
},
mounted() {
async mounted() {
this.loader = await loadingController
.create({
message: this.$t("Click the backdrop to dismiss."),
translucent: true,
backdropDismiss: true
});
emitter.on('presentLoader', this.presentLoader)
emitter.on('dismissLoader', this.dismissLoader)
},
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"Already active session": "Already active session",
"A session for is already active for. Do you want to continue or login again?": "A session for {partyName} is already active for {oms}. Do you want to continue or login again?",
"Click the backdrop to dismiss.": "Click the backdrop to dismiss.",
"Continue": "Continue",
"Re-login": "Re-login",
"Launch Pad": "Launch Pad",
Expand Down

0 comments on commit 8b194c6

Please sign in to comment.