mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Fix OAuth popup loader
This commit is contained in:
parent
c0b960bccf
commit
a9b5c91f84
4 changed files with 9 additions and 11 deletions
|
@ -503,8 +503,8 @@ function uuidv4() {
|
||||||
|
|
||||||
var x_plex_headers = {
|
var x_plex_headers = {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'X-Plex-Product': '',
|
'X-Plex-Product': 'Tautulli',
|
||||||
'X-Plex-Version': '',
|
'X-Plex-Version': 'Plex OAuth',
|
||||||
'X-Plex-Client-Identifier': localStorage.getItem('Tautulli_ClientId'),
|
'X-Plex-Client-Identifier': localStorage.getItem('Tautulli_ClientId'),
|
||||||
'X-Plex-Platform': platform.name,
|
'X-Plex-Platform': platform.name,
|
||||||
'X-Plex-Platform-Version': platform.version,
|
'X-Plex-Platform-Version': platform.version,
|
||||||
|
@ -515,7 +515,7 @@ var x_plex_headers = {
|
||||||
var plex_oauth_window = null;
|
var plex_oauth_window = null;
|
||||||
const plex_oauth_loader = '<style>' +
|
const plex_oauth_loader = '<style>' +
|
||||||
'.login-loader-container {' +
|
'.login-loader-container {' +
|
||||||
'font-family: \'Open Sans\', Arial, sans-serif;' +
|
'font-family: "Open Sans", Arial, sans-serif;' +
|
||||||
'position: absolute;' +
|
'position: absolute;' +
|
||||||
'top: 0;' +
|
'top: 0;' +
|
||||||
'right: 0;' +
|
'right: 0;' +
|
||||||
|
@ -541,12 +541,16 @@ const plex_oauth_loader = '<style>' +
|
||||||
'position: relative;' +
|
'position: relative;' +
|
||||||
'left: calc(50% - 25px);' +
|
'left: calc(50% - 25px);' +
|
||||||
'}' +
|
'}' +
|
||||||
|
'@keyframes spin {' +
|
||||||
|
'0% { transform: rotate(0deg); }' +
|
||||||
|
'100% { transform: rotate(360deg); }' +
|
||||||
|
'}' +
|
||||||
'</style>' +
|
'</style>' +
|
||||||
'<div class"login-loader-container">' +
|
'<div class="login-loader-container">' +
|
||||||
'<div class="login-loader-message">' +
|
'<div class="login-loader-message">' +
|
||||||
'<div class="login-loader"></div>' +
|
'<div class="login-loader"></div>' +
|
||||||
'<br>' +
|
'<br>' +
|
||||||
'Redirecting to Plex Login...' +
|
'Redirecting to the Plex login page...' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
|
|
|
@ -124,8 +124,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#sign-in-plex').click(function() {
|
$('#sign-in-plex').click(function() {
|
||||||
x_plex_headers['X-Plex-Product'] = '${plexpy.common.PRODUCT}';
|
|
||||||
x_plex_headers['X-Plex-Version'] = '${plexpy.common.RELEASE}';
|
|
||||||
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback);
|
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2269,8 +2269,6 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#sign-in-plex').click(function() {
|
$('#sign-in-plex').click(function() {
|
||||||
x_plex_headers['X-Plex-Product'] = '${plexpy.common.PRODUCT}';
|
|
||||||
x_plex_headers['X-Plex-Version'] = '${plexpy.common.RELEASE}';
|
|
||||||
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback, OAuthPreFunction);
|
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback, OAuthPreFunction);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -483,8 +483,6 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#sign-in-plex').click(function() {
|
$('#sign-in-plex').click(function() {
|
||||||
x_plex_headers['X-Plex-Product'] = '${plexpy.common.PRODUCT}';
|
|
||||||
x_plex_headers['X-Plex-Version'] = '${plexpy.common.RELEASE}';
|
|
||||||
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback, OAuthPreFunction);
|
PlexOAuth(OAuthSuccessCallback, OAuthErrorCallback, OAuthPreFunction);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue