diff --git a/src/js/sandbox/index.js b/src/js/sandbox/index.js index 1227cfdb..c85d5f44 100644 --- a/src/js/sandbox/index.js +++ b/src/js/sandbox/index.js @@ -234,6 +234,15 @@ var Sandbox = Backbone.View.extend({ }, resetSolved: function(command, deferred) { + if (command.get('regexResults').input !== 'reset solved --confirm') { + command.set('error', new Errors.GitError({ + msg: 'Reset solved will mark each level as not yet solved; because ' + + 'this is a destructive command, please pass in --confirm to execute', + })); + command.finishWith(deferred); + return; + } + LevelActions.resetLevelsSolved(); command.addWarning( intl.str('solved-map-reset') diff --git a/src/levels/rampup/interactiveRebase.js b/src/levels/rampup/interactiveRebase.js index da97a036..d858f2ed 100644 --- a/src/levels/rampup/interactiveRebase.js +++ b/src/levels/rampup/interactiveRebase.js @@ -75,10 +75,12 @@ exports.level = { "markdowns": [ "When the interactive rebase dialog opens, you have the ability to do two things in our educational application:", "", - "* You can reorder commits simply by changing their order in the UI (in our window this means dragging and dropping with the mouse).", - "* You can choose to completely omit some commits. This is designated by `pick` -- toggling `pick` off means you want to drop the commit.", + "* You can reorder commits simply by changing their order in the UI (via dragging and dropping with the mouse).", + "* You can choose to keep all commits or drop specific ones. When the dialog opens, each commit is set to being included by the `pick` " + + "button being active. To drop a commit, click the `pick` button to toggle it off.", "", - "*It is worth mentioning that in the real git interactive rebase you can do many more things like squashing (combining) commits, amending commit messages, and even editing the commits themselves. For our purposes though we will focus on these two operations above.*", + "*It is worth mentioning that in the real git interactive rebase you can do many more things like squashing (combining) commits, " + + "amending commit messages, and even editing the commits themselves. For our purposes though we will focus on these two operations above.*", "", "Great! Let's see an example." ] diff --git a/src/style/main.css b/src/style/main.css index 07a23cd2..cd15030a 100644 --- a/src/style/main.css +++ b/src/style/main.css @@ -260,6 +260,14 @@ body.hgMode .visBackgroundColor { min-height: 400px; } +div.ui-draggable-handle { + cursor: grab; +} + +div.ui-draggable-dragging div.ui-draggable-handle { + cursor: grabbing; +} + div.canvasTerminalHolder > div.terminal-window-holder > div.wrapper { height: 100%; box-shadow: 0 0 12px rgb(0,0,0); @@ -433,6 +441,10 @@ div.toolbar > div.controls div.box.flex1 div:hover { } +div.ui-draggable div.controls div.box.flex1 div { + cursor: pointer; +} + div.controls div.box.flex1 div.close { background-color: #fb625f; }