From c214197cee192d9ae511d145d8e28cef8ae9a0d1 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 9 Apr 2018 20:44:37 +0300 Subject: Separate notification into its own component, fix follow notification type --- src/components/notification/notification.js | 24 +++++++++++++++++++ src/components/notification/notification.vue | 35 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 src/components/notification/notification.js create mode 100644 src/components/notification/notification.vue (limited to 'src/components/notification') diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js new file mode 100644 index 00000000..3a274374 --- /dev/null +++ b/src/components/notification/notification.js @@ -0,0 +1,24 @@ +import Status from '../status/status.vue' +import StillImage from '../still-image/still-image.vue' +import UserCardContent from '../user_card_content/user_card_content.vue' + +const Notification = { + data () { + return { + userExpanded: false + } + }, + props: [ + 'notification' + ], + components: { + Status, StillImage, UserCardContent + }, + methods: { + toggleUserExpanded () { + this.userExpanded = !this.userExpanded + } + } +} + +export default Notification diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue new file mode 100644 index 00000000..74563ff9 --- /dev/null +++ b/src/components/notification/notification.vue @@ -0,0 +1,35 @@ + + + -- cgit v1.2.3-70-g09d2