Skip to content

Commit dfb2e09

Browse files
committed
make birthday opt in
1 parent dcfdef7 commit dfb2e09

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

views/layout.moon

+2-12
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,11 @@ class Layout extends require "widgets.base"
3939
[[document.body]]
4040

4141
js_init: =>
42-
birthday_effects = types.partial {
43-
id: types.one_of {
44-
1
45-
22789 -- sigh
46-
22760 -- addy
47-
22762 -- deep
48-
22823 -- cody
49-
22794 -- ali
50-
}
51-
}
52-
42+
birthday_effects = not not @params.addy
5343
super {
5444
header: { flash: @flash }
5545
current_user_id: @current_user and @current_user.id
56-
birthday_effects: birthday_effects @current_user
46+
:birthday_effects
5747

5848
timezone: if @current_user
5949
{

0 commit comments

Comments
 (0)