- {{ relativeTimestamp }}
+
+
+ {{ relativeTimestamp }}
+
+
@@ -39,6 +47,7 @@ import * as linkify from 'linkifyjs'
import pluginTag from 'linkifyjs/plugins/hashtag'
import pluginMention from 'linkifyjs/plugins/mention'
import 'linkifyjs/string'
+import popoverMenu from './../mixins/popoverMenu'
pluginTag(linkify)
pluginMention(linkify)
@@ -48,15 +57,32 @@ export default {
components: {
Avatar
},
+ mixins: [popoverMenu],
props: {
item: { type: Object, default: () => {} }
},
data() {
return {
-
}
},
computed: {
+ popoverMenu() {
+ var actions = [
+ {
+ action: () => { this.$root.$emit('composer-reply', this.item) },
+ icon: 'icon-comment',
+ text: t('social', 'Reply to post')
+ }
+ ]
+ actions.push(
+ {
+ action: () => { },
+ icon: 'icon-delete',
+ text: t('social', 'Delete post')
+ }
+ )
+ return actions
+ },
relativeTimestamp() {
return OC.Util.relativeModifiedDate(this.item.published)
},
@@ -90,7 +116,7 @@ export default {
}
}
-