Hide/show loading message instead of toggling

This commit is contained in:
Kevin Sawicki 2013-02-28 11:25:02 -08:00
parent 352607f9b4
commit 56d92fe029

View File

@ -88,9 +88,6 @@ class CommandPanelView extends View
else
@miniEditor.focus()
toggleLoading: ->
@loadingMessage.toggle()
onExpandAll: (event) =>
@previewList.expandAllPaths()
@previewList.focus()
@ -119,12 +116,12 @@ class CommandPanelView extends View
@miniEditor.getText()
execute: (command=@escapedCommand())->
@toggleLoading()
@loadingMessage.show()
@errorMessages.empty()
try
@commandInterpreter.eval(command, rootView.getActiveEditSession()).done ({operationsToPreview, errorMessages}) =>
@toggleLoading()
@loadingMessage.hide()
@history.push(command)
@historyIndex = @history.length