+
+
+
{{ reply_count }}
@@ -24,6 +27,14 @@ export default {
'post_liked': {
'type': Boolean,
'default': true
+ },
+ 'is_pinnable': {
+ 'type': Boolean,
+ 'default': false
+ },
+ 'is_pinned': {
+ 'type': Number,
+ 'default': 0
}
},
}
@@ -33,7 +44,7 @@ export default {
clear: both;
display: flex;
justify-content: flex-end;
- .reply, .like {
+ .reply, .like, .pin {
cursor: pointer;
padding: 10px;
span {
@@ -49,5 +60,8 @@ export default {
color: lighten(red, 20%) !important;
}
}
+ .pinned {
+ color: black;
+ }
}
\ No newline at end of file
diff --git a/frappe/public/js/frappe/social/pages/Profile.vue b/frappe/public/js/frappe/social/pages/Profile.vue
index 64a4de5557..5d04f0e3dd 100644
--- a/frappe/public/js/frappe/social/pages/Profile.vue
+++ b/frappe/public/js/frappe/social/pages/Profile.vue
@@ -37,7 +37,7 @@ export default {
filters: {
owner: this.user_id,
},
- fields: ['name', 'content', 'owner', 'creation', 'liked_by'],
+ fields: ['name', 'content', 'owner', 'creation', 'liked_by', 'is_pinned'],
order_by: 'creation desc',
}).then((posts) => {
this.my_posts = posts;
diff --git a/frappe/public/js/frappe/social/pages/Wall.vue b/frappe/public/js/frappe/social/pages/Wall.vue
index b1d9720bbb..4f83dc47e5 100644
--- a/frappe/public/js/frappe/social/pages/Wall.vue
+++ b/frappe/public/js/frappe/social/pages/Wall.vue
@@ -1,19 +1,22 @@
-
+
{{ new_posts_count + ' new post'}}
-
-