@@ -179,7 +179,6 @@ FeedbackUtils.prototype.displayFeedback = function (options, requiredBlocks,
179179 hideTryAgain : options . hideTryAgain ,
180180 keepPlayingText : options . keepPlayingText ,
181181 continueText : options . continueText ,
182- showPreviousButton : options . level . showPreviousLevelButton ,
183182 isK1 : options . level . isK1 ,
184183 freePlay : options . level . freePlay ,
185184 finalLevel : finalLevel
@@ -188,16 +187,14 @@ FeedbackUtils.prototype.displayFeedback = function (options, requiredBlocks,
188187
189188 var againButton = feedback . querySelector ( '#again-button' ) ;
190189 var hintRequestButton = feedback . querySelector ( '#hint-request-button' ) ;
191- var previousLevelButton = feedback . querySelector ( '#back-button' ) ;
192190 var continueButton = feedback . querySelector ( '#continue-button' ) ;
193191
194192 // Don't show the continue button on share pages.
195193 if ( this . studioApp_ . share ) {
196194 continueButton . style . display = 'none' ;
197195 }
198196
199- const hasNeitherBackButton = ! againButton && ! previousLevelButton ;
200- const onlyContinue = continueButton && hasNeitherBackButton ;
197+ const onlyContinue = continueButton && ! againButton ;
201198 const defaultContinue = onlyContinue || options . defaultToContinue ;
202199
203200 /**
@@ -314,13 +311,6 @@ FeedbackUtils.prototype.displayFeedback = function (options, requiredBlocks,
314311 } ) ;
315312 }
316313
317- if ( previousLevelButton ) {
318- dom . addClickTouchEvent ( previousLevelButton , function ( ) {
319- feedbackDialog . hide ( ) ;
320- options . backToPreviousLevel ( ) ;
321- } ) ;
322- }
323-
324314 // If there is a hint request button, hide the hint that would ordinarily
325315 // be shown (including any feedback blocks), and add code to restore the
326316 // hint if the button gets pressed.
@@ -617,9 +607,6 @@ FeedbackUtils.prototype.getFeedbackButtons_ = function (options) {
617607 }
618608
619609 ReactDOM . render ( React . createElement ( DialogButtons , {
620- previousLevel :
621- ! this . canContinueToNextLevel ( options . feedbackType ) &&
622- options . showPreviousButton ,
623610 tryAgain : tryAgainText ,
624611 continueText : options . continueText || ( options . finalLevel ? msg . finish ( ) : msg . continue ( ) ) ,
625612 nextLevel : this . canContinueToNextLevel ( options . feedbackType ) ,
0 commit comments