summaryrefslogtreecommitdiffstats
path: root/js/vue_components/IconLinkCompact.vue
diff options
context:
space:
mode:
Diffstat (limited to 'js/vue_components/IconLinkCompact.vue')
-rw-r--r--js/vue_components/IconLinkCompact.vue21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/vue_components/IconLinkCompact.vue b/js/vue_components/IconLinkCompact.vue
new file mode 100644
index 000000000..217e9001c
--- /dev/null
+++ b/js/vue_components/IconLinkCompact.vue
@@ -0,0 +1,21 @@
+<template>
+ <li class="util only-in-compact">
+ <a class="external icon-link"
+ v-on:click="ctrl.markRead(item.id)"
+ target="_blank"
+ rel="noreferrer"
+ v-bind:href="item.url"
+ title="<?php p($l->t('Open website')) ?>"
+ news-stop-propagation>
+ </a>
+ </li>
+</template>
+
+<script>
+
+export default {
+ props: ['ctrl', 'item'],
+};
+</script>
+
+