mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28: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
|
@ -271,7 +271,7 @@ var Level = Sandbox.extend({
|
|||
);
|
||||
log.showLevelSolution(this.getEnglishName());
|
||||
}.bind(this);
|
||||
|
||||
|
||||
var commandStr = command.get('rawStr');
|
||||
if (!this.testOptionOnString(commandStr, 'noReset')) {
|
||||
toIssue = 'reset --forSolution; ' + toIssue;
|
||||
|
@ -282,7 +282,9 @@ var Level = Sandbox.extend({
|
|||
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
|
||||
var confirmDefer = Q.defer();
|
||||
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue