git ssb

16+

Dominic / patchbay



Commit ebf65e8c8947bcad79b243e4d8cd5674ae1b6777

clearer follow/unfollow button

Joran committed on 12/18/2016, 5:31:45 AM
Parent: de3e4fa5b4bd7be375a1abc89bfa0730f7999bfd

Files changed

modules_basic/avatar-profile.jschanged
modules_basic/follow.jschanged
modules_basic/avatar-profile.jsView
@@ -69,9 +69,9 @@
6969 add(_b, followers_el)
7070 }
7171
7272
73- return h('div.column.profile',
73 + return h('div.well',
7474 api.avatar_edit(id),
7575 api.avatar_action(id),
7676 h('div.profile__relationships.column',
7777 h('strong', 'follows'),
modules_basic/follow.jsView
@@ -67,9 +67,9 @@
6767 update()
6868 })
6969
7070 var state = h('label')
71- var label = h('span')
71 + var label = h('button.btn')
7272
7373 function update () {
7474 state.textContent = (
7575 follows_you && you_follow ? 'friend'
@@ -78,8 +78,11 @@
7878 : ''
7979 )
8080
8181 label.textContent = you_follow ? 'unfollow' : 'follow'
82 +
83 + var className = you_follow ? 'btn-warning' : 'btn-success'
84 + label.classList.add(className)
8285 }
8386
8487 return h('div', state,
8588 h('a', {href:'#', onclick: function () {

Built with git-ssb-web