mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Google Drive improvement
This commit is contained in:
parent
d8bef79fc5
commit
409e9fbdc2
6 changed files with 184 additions and 154 deletions
|
|
@ -1103,10 +1103,8 @@ PopupsComposeViewModel.prototype.driveOpenPopup = function ()
|
||||||
{
|
{
|
||||||
window.gapi.auth.authorize({
|
window.gapi.auth.authorize({
|
||||||
'client_id': RL.settingsGet('GoogleClientID'),
|
'client_id': RL.settingsGet('GoogleClientID'),
|
||||||
'scope': [
|
'scope': 'https://www.googleapis.com/auth/drive.readonly',
|
||||||
'https://www.googleapis.com/auth/drive.readonly'
|
'immediate': true
|
||||||
].join(' '),
|
|
||||||
'immediate': false
|
|
||||||
}, function (oAuthResult) {
|
}, function (oAuthResult) {
|
||||||
if (oAuthResult && !oAuthResult.error)
|
if (oAuthResult && !oAuthResult.error)
|
||||||
{
|
{
|
||||||
|
|
@ -1116,6 +1114,23 @@ PopupsComposeViewModel.prototype.driveOpenPopup = function ()
|
||||||
self.driveCreatePiker(oAuthToken);
|
self.driveCreatePiker(oAuthToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
window.gapi.auth.authorize({
|
||||||
|
'client_id': RL.settingsGet('GoogleClientID'),
|
||||||
|
'scope': 'https://www.googleapis.com/auth/drive.readonly',
|
||||||
|
'immediate': false
|
||||||
|
}, function (oAuthResult) {
|
||||||
|
if (oAuthResult && !oAuthResult.error)
|
||||||
|
{
|
||||||
|
var oAuthToken = window.gapi.auth.getToken();
|
||||||
|
if (oAuthToken)
|
||||||
|
{
|
||||||
|
self.driveCreatePiker(oAuthToken);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -10126,10 +10126,8 @@ PopupsComposeViewModel.prototype.driveOpenPopup = function ()
|
||||||
{
|
{
|
||||||
window.gapi.auth.authorize({
|
window.gapi.auth.authorize({
|
||||||
'client_id': RL.settingsGet('GoogleClientID'),
|
'client_id': RL.settingsGet('GoogleClientID'),
|
||||||
'scope': [
|
'scope': 'https://www.googleapis.com/auth/drive.readonly',
|
||||||
'https://www.googleapis.com/auth/drive.readonly'
|
'immediate': true
|
||||||
].join(' '),
|
|
||||||
'immediate': false
|
|
||||||
}, function (oAuthResult) {
|
}, function (oAuthResult) {
|
||||||
if (oAuthResult && !oAuthResult.error)
|
if (oAuthResult && !oAuthResult.error)
|
||||||
{
|
{
|
||||||
|
|
@ -10139,6 +10137,23 @@ PopupsComposeViewModel.prototype.driveOpenPopup = function ()
|
||||||
self.driveCreatePiker(oAuthToken);
|
self.driveCreatePiker(oAuthToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
window.gapi.auth.authorize({
|
||||||
|
'client_id': RL.settingsGet('GoogleClientID'),
|
||||||
|
'scope': 'https://www.googleapis.com/auth/drive.readonly',
|
||||||
|
'immediate': false
|
||||||
|
}, function (oAuthResult) {
|
||||||
|
if (oAuthResult && !oAuthResult.error)
|
||||||
|
{
|
||||||
|
var oAuthToken = window.gapi.auth.getToken();
|
||||||
|
if (oAuthToken)
|
||||||
|
{
|
||||||
|
self.driveCreatePiker(oAuthToken);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue