debian-mirror-gitlab/app/assets/javascripts/vue_shared/components/notes/placeholder_system_note.vue

33 lines
647 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2018-12-23 12:14:25 +05:30
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
2018-12-13 13:39:08 +05:30
/**
* Common component to render a placeholder system note.
*
* @example
* <placeholder-system-note
* :note="{ body: 'Commands are being applied'}"
* />
*/
export default {
name: 'PlaceholderSystemNote',
2018-12-23 12:14:25 +05:30
components: {
TimelineEntryItem,
},
2018-12-13 13:39:08 +05:30
props: {
note: {
type: Object,
required: true,
2018-03-17 18:26:18 +05:30
},
2018-12-13 13:39:08 +05:30
},
};
2018-03-17 18:26:18 +05:30
</script>
<template>
2018-12-23 12:14:25 +05:30
<timeline-entry-item class="note system-note being-posted fade-in-half">
<div class="timeline-content">
<em>{{ note.body }}</em>
2018-03-17 18:26:18 +05:30
</div>
2018-12-23 12:14:25 +05:30
</timeline-entry-item>
2018-03-17 18:26:18 +05:30
</template>