Skip to content

Commit

Permalink
Show popup for new installs
Browse files Browse the repository at this point in the history
  • Loading branch information
khrj committed Aug 26, 2020
1 parent bf1bfae commit 2e2bb9a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/guide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installation Guide

This section lists the various ways to install TeleDrive.
This section lists the various ways to install TeleDrive. Already done with that? [Jump to using TeleDrive](../features)
Select your operating system:

- [Windows](./windows/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@
"dist": "electron-builder",
"start": "electron ."
},
"version": "0.9.9"
"version": "0.9.10"
}
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ app.on('ready', async () => {
"Darwin": "mac"
}
client = create(app.getPath('userData'), app.getAppPath(), osMap[require('os').type()])
// noinspection ES6MissingAwait
// noinspection ES6MissingAwait
createWindow()
authenticate(client, mainWindow)
updateInfo(client, mainWindow, app.getPath('userData'), app.getVersion())
Expand Down
3 changes: 2 additions & 1 deletion src/watcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ module.exports.addWatches = async (teleDir, myID, client, appFilesPath, appVersi
}
})
resolve()
} else {
}
else {
await client.api.downloadFile({
fileId: results.response.messages[0].content.document.document.id,
priority: 32
Expand Down
16 changes: 16 additions & 0 deletions src/window/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ window.addEventListener('DOMContentLoaded', () => {
}

if (message._ === 'phoneNumber') {
// noinspection JSUnresolvedFunction
let choice = await swal({
title: "Welcome to TeleDrive",
text: 'New here? Checkout the documentation',
icon: "info",
buttons: {
cancel: "Skip",
confirm: "View documentation",
},
closeOnClickOutside: false
})

if (choice) {
await shell.openExternal('https://www.khushrajrathod.me/TeleDrive/docs/')
}

if (!message.isRetry) {
ensureVisible()
description.innerHTML = 'Please enter your phone number<br>in international format.'
Expand Down

0 comments on commit 2e2bb9a

Please sign in to comment.