Fixes for the download dialog (className), and update the location of the troubleshoot link. (#548)

This commit is contained in:
Sam El-Husseini 2018-05-01 13:08:05 -04:00 committed by GitHub
parent 764994a633
commit ba00d91bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,14 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="ui one column grid">
<div class="column">
<a href="/troubleshoot" target="_blank" class="ui segment container yellow">
<i class="icon exclamation circle large" aria-hidden="true"></i>
${lf("Something wrong? Click here to troubleshoot..")}
</a>
</div>
</div>`; </div>`;
return confirmAsync({ return confirmAsync({
@ -63,20 +71,16 @@ pxt.editor.initExtensionsAsync = function (opts: pxt.editor.ExtensionOptions): P
hideCancel: true, hideCancel: true,
hideAgree: false, hideAgree: false,
agreeLbl: lf("I got it"), agreeLbl: lf("I got it"),
buttons: [{ buttons: [downloadAgain ? {
label: lf("I don't see the EV3 drive"),
url: '/troubleshoot',
class: 'troubleshoot left floated'
}, downloadAgain ? {
label: fn, label: fn,
icon: "download", icon: "download",
class: "lightgrey focused", className: "lightgrey focused",
url, url,
fileName: fn fileName: fn
} : undefined, docUrl ? { } : undefined, docUrl ? {
label: lf("Help"), label: lf("Help"),
icon: "help", icon: "help",
class: "lightgrey", className: "lightgrey",
url: docUrl url: docUrl
} : undefined] } : undefined]
//timeout: 20000 //timeout: 20000