Fixes for the download dialog (className), and update the location of the troubleshoot link. (#548)
This commit is contained in:
parent
764994a633
commit
ba00d91bf2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user