mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Hide/show loading message instead of toggling
This commit is contained in:
parent
352607f9b4
commit
56d92fe029
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user