aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card/user_card.js
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-08-21 20:25:01 +0300
committereal <eal@waifu.club>2017-08-23 19:14:06 +0300
commitccfc2e57d0e265bddc88d5ace30428268f3b1df1 (patch)
treede7b16eeff754236851db033afbd21ff7de698a4 /src/components/user_card/user_card.js
parentdbad99cb4fac4750a881773c9add317a8a4d9664 (diff)
Add follower and following views
Diffstat (limited to 'src/components/user_card/user_card.js')
-rw-r--r--src/components/user_card/user_card.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
new file mode 100644
index 00000000..a7a871c3
--- /dev/null
+++ b/src/components/user_card/user_card.js
@@ -0,0 +1,23 @@
+import UserCardContent from '../user_card_content/user_card_content.vue'
+
+const UserCard = {
+ props: [
+ 'user',
+ 'showFollows'
+ ],
+ data () {
+ return {
+ userExpanded: false
+ }
+ },
+ components: {
+ UserCardContent
+ },
+ methods: {
+ toggleUserExpanded () {
+ this.userExpanded = !this.userExpanded
+ }
+ }
+}
+
+export default UserCard