Hide recent tab if we're searching
This commit is contained in:
parent
4ffd33c087
commit
9c149313f7
|
@ -50,6 +50,9 @@
|
||||||
#tab_search:not(.active)
|
#tab_search:not(.active)
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
#tab_recent.hidden
|
||||||
|
display: none
|
||||||
|
|
||||||
#tab_owned
|
#tab_owned
|
||||||
display: none
|
display: none
|
||||||
#tab_owned.display
|
#tab_owned.display
|
||||||
|
|
|
@ -6,7 +6,10 @@ View = Ember.View.extend
|
||||||
currentUserBinding: 'controller.currentUser.id'
|
currentUserBinding: 'controller.currentUser.id'
|
||||||
|
|
||||||
classRecent: (->
|
classRecent: (->
|
||||||
'active' if @get('tab') == 'recent'
|
if @get('tab') == 'recent'
|
||||||
|
'active'
|
||||||
|
else if @get('tab') == 'search' && @auth.get('signedIn')
|
||||||
|
'hidden'
|
||||||
).property('tab')
|
).property('tab')
|
||||||
|
|
||||||
classOwned: (->
|
classOwned: (->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user