mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 09:34:28 +02:00
Resolves #764 -- disableLevelInstructions for global mode change
This commit is contained in:
parent
ddb3dc93ca
commit
6df4d93880
5 changed files with 37 additions and 0 deletions
|
@ -69,6 +69,13 @@ var Level = Sandbox.extend({
|
|||
|
||||
// if there is a multiview in the beginning, open that
|
||||
// and let it resolve our deferred
|
||||
if (GlobalStateStore.getShouldDisableLevelInstructions()) {
|
||||
setTimeout(function() {
|
||||
deferred.resolve();
|
||||
}, 100);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.level.startDialog && !this.testOption('noIntroDialog')) {
|
||||
new MultiView(Object.assign(
|
||||
{},
|
||||
|
@ -166,6 +173,14 @@ var Level = Sandbox.extend({
|
|||
|
||||
startOffCommand: function() {
|
||||
var method = this.options.command.get('method');
|
||||
if (GlobalStateStore.getShouldDisableLevelInstructions()) {
|
||||
Main.getEventBaton().trigger(
|
||||
'commandSubmitted',
|
||||
'hint; show goal'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.testOption('noStartCommand') && method !== 'importLevelNow') {
|
||||
Main.getEventBaton().trigger(
|
||||
'commandSubmitted',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue