mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
Resolves #1134 -- show solution on gist levels
This commit is contained in:
parent
ac94520a99
commit
b86a9d704c
1 changed files with 4 additions and 2 deletions
|
@ -282,7 +282,9 @@ var Level = Sandbox.extend({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!LevelStore.isLevelSolved(this.level.id)){
|
// if the level doesn't have an ID, its a GIST import and
|
||||||
|
// we don't need to worry about the solved map regardless
|
||||||
|
if(this.level.id && !LevelStore.isLevelSolved(this.level.id)){
|
||||||
// allow them for force the solution
|
// allow them for force the solution
|
||||||
var confirmDefer = Q.defer();
|
var confirmDefer = Q.defer();
|
||||||
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
|
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue