2019-10-17 14:17:02 +00:00
|
|
|
<template>
|
2021-11-29 23:35:26 +00:00
|
|
|
<span
|
|
|
|
class="inline-channel"
|
|
|
|
dir="auto"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
@click.prevent="openContextMenu"
|
|
|
|
@contextmenu.prevent="openContextMenu"
|
2019-10-17 14:17:02 +00:00
|
|
|
><slot></slot
|
|
|
|
></span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-11-29 23:35:26 +00:00
|
|
|
import eventbus from "../js/eventbus";
|
2019-11-12 15:51:40 +00:00
|
|
|
|
2019-10-17 14:17:02 +00:00
|
|
|
export default {
|
|
|
|
name: "InlineChannel",
|
|
|
|
props: {
|
|
|
|
channel: String,
|
|
|
|
},
|
|
|
|
methods: {
|
2021-12-20 23:34:28 +00:00
|
|
|
openContextMenu(event) {
|
2021-11-29 23:35:26 +00:00
|
|
|
eventbus.emit("contextmenu:inline-channel", {
|
|
|
|
event: event,
|
|
|
|
channel: this.channel,
|
2019-10-17 14:17:02 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|