support for various help options

This commit is contained in:
Peli de Halleux 2015-07-25 17:31:45 -07:00
Родитель b350a55d9c
Коммит 44e8783a0f
4 изменённых файлов: 14 добавлений и 5 удалений

Просмотреть файл

@ -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;