support for various help options
This commit is contained in:
Родитель
b350a55d9c
Коммит
44e8783a0f
|
@ -1277,7 +1277,16 @@ module TDev
|
|||
this.codeInner.setChildren(nodes);
|
||||
if (this.widgetEnabled("calcHelpOverlay")) {
|
||||
this.codeInner.appendChild(div('helpBtnOverlay', HTML.mkRoundButton('svg:fa-question,black', lf("help"), Ticks.calcHelpOverlay, () => {
|
||||
Util.navigateInWindow(Cloud.config.helpPath);
|
||||
var m = new ModalDialog();
|
||||
m.add(div('wall-dialog-header', lf("got a question?")));
|
||||
m.add(div('wall-dialog-body', lf("We're here to help. Pick one of the options below to get more help...")));
|
||||
m.add(div('wall-dialog-buttons',
|
||||
HTML.mkButton(lf("read the docs"), () => Util.navigateInWindow(Cloud.config.helpPath)),
|
||||
this.widgetEnabled("computingAtSchool") ? HTML.mkButton(lf("CAS forum"), () => Util.navigateInWindow("http://community.computingatschool.org.uk/forums/1")) : undefined,
|
||||
this.widgetEnabled("userVoice") ? HTML.mkButton("Post an idea", () => Util.navigateInWindow("https://touchdevelop.uservoice.com")) : undefined,
|
||||
HTML.mkButton(lf("cancel"), () => m.dismiss())
|
||||
));
|
||||
m.show();
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -444,7 +444,7 @@ module TDev.Browser {
|
|||
socialNetworkvimeo:true,
|
||||
socialNetworkart: true,
|
||||
publishAsHidden: true,
|
||||
publishToComputingAtSchools: true,
|
||||
computingAtSchool: true,
|
||||
splitScreen: true,
|
||||
splitButton: true,
|
||||
actionSettings: true,
|
||||
|
@ -511,7 +511,7 @@ module TDev.Browser {
|
|||
socialNetworkvimeo: true,
|
||||
socialNetworkart: true,
|
||||
publishAsHidden: true,
|
||||
publishToComputingAtSchools: true,
|
||||
computingAtSchool: true,
|
||||
splitScreen: true,
|
||||
splitButton: true,
|
||||
actionSettings: true,
|
||||
|
|
|
@ -6851,7 +6851,7 @@
|
|||
])
|
||||
})()
|
||||
|
||||
if (EditorSettings.widgets().publishToComputingAtSchools) {
|
||||
if (EditorSettings.widgets().computingAtSchool) {
|
||||
m.add(div("wall-dialog-buttons text-left",
|
||||
HTML.mkButton(lf("publish at ComputingAtSchool.org.uk"), () => {
|
||||
var descr = this.app.getDescription();
|
||||
|
|
|
@ -94,7 +94,7 @@ module TDev.Cloud {
|
|||
hubUsers?: boolean;
|
||||
publishDescription?: boolean;
|
||||
sendPullRequest?: boolean;
|
||||
publishToComputingAtSchools?: boolean;
|
||||
computingAtSchool?: boolean;
|
||||
scriptStats?: boolean;
|
||||
userSocialTab?: boolean;
|
||||
commentHistory?: boolean;
|
||||
|
|
Загрузка…
Ссылка в новой задаче