make google drive "Get Code" button launch setup tutorial if minimum not set

fix-non-showing-inputs
Moe Alam 2020-10-17 18:40:25 -07:00
parent ea9e97e437
commit cbe0af5273
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ module.exports = (s,config,lang,app,io) => {
{
"hidden": true,
"fieldType": "btn",
"attribute": `style="margin-bottom:1em" href="javascript:$.get(getApiPrefix() + '/googleDriveOAuthRequest/' + $user.ke,function(data){if(data.ok)window.open(data.authUrl, 'Google Drive Authentication', 'width=800,height=400');})"`,
"attribute": `style="margin-bottom:1em" href="javascript:$.get(getApiPrefix() + '/googleDriveOAuthRequest/' + $user.ke,function(data){window.open(data.ok ? data.authUrl : 'https://hub.shinobi.video/articles/view/oEIDEGXLlzmSsCk', 'Google Drive', 'width=800,height=400');})"`,
"class": `btn-success`,
"form-group-class": "autosave_googd_input autosave_googd_1",
"btnContent": `<i class="fa fa-plus"></i> &nbsp; ${lang['Get Code']}`,