Add account badge #31
Reference in New Issue
Block a user
Delete Branch "feature/account-badge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This gives easy access to test if the "user/visitor" has an account, is i
a contributor and if she is core.
Right now I am using this to display an account badge the the name and the account. - currently not styled.
❤️ left some comments
You can add:
import { isEmpty, isPresent } from 'ember-utils';and make this
return isPresent(this.get('currentUser'));^^
^^
👍
We import
RSVPso you can use it withoutEmber^^
let address = this.get('currentUserAccounts.firstObject')id = id.toNumber()if (id === 0)@@ -1,8 +1,19 @@{{#if kredits.hasAccounts }}I would indent it like this:
guess this should get some styling before we merge it.
👏