mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
Don't show when empty
This commit is contained in:
parent
8acb37338d
commit
f720b14f22
@ -27,3 +27,9 @@ describe "OutlineView", ->
|
||||
expect(rootView.find('.outline-view')).not.toExist()
|
||||
rootView.trigger 'outline-view:toggle'
|
||||
expect(rootView.find('.outline-view')).not.toExist()
|
||||
|
||||
it "doesn't display when no functions exist", ->
|
||||
rootView.open(require.resolve('fixtures/sample-with-tabs.coffee'))
|
||||
expect(rootView.find('.outline-view')).not.toExist()
|
||||
rootView.trigger 'outline-view:toggle'
|
||||
expect(rootView.find('.outline-view')).not.toExist()
|
||||
|
@ -52,7 +52,7 @@ class OutlineView extends SelectList
|
||||
column: matches[1].length
|
||||
name: matches[2]
|
||||
@setArray(functions)
|
||||
true
|
||||
return functions.length > 0
|
||||
|
||||
confirmed : ({row, column, name}) ->
|
||||
@cancel()
|
||||
|
Loading…
Reference in New Issue
Block a user