hide feedback if not logged in

This commit is contained in:
Lisa Passing 2015-07-14 18:11:32 +02:00
parent db1db13066
commit 44d59909d3
2 changed files with 9 additions and 8 deletions

View File

@ -81,6 +81,10 @@ App = Ember.Application.extend(Ember.Evented,
Travis.pusher.subscribeAll(channels)
setupUserlike: (user) ->
btn = document.getElementById('userlikeCustomTab')
btn.className = btn.className + " logged-in"
userlikeData = window.userlikeData = {}
userlikeData.user = {}

View File

@ -1,12 +1,6 @@
.feedback-button
display: none
.pro
.feedback-button
display: inline-block
.feedback-button
display: inline-block
position: fixed
right: 1%
left: auto
@ -24,4 +18,7 @@
z-index: 89
.feedback-button:hover
transform: translateY(5%)
transform: translateY(5%)
.logged-in.feedback-button
display: inline-block