mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
30 lines
482 B
Vue
30 lines
482 B
Vue
<template>
|
|
<span
|
|
class="inline-channel"
|
|
dir="auto"
|
|
role="button"
|
|
tabindex="0"
|
|
@click.prevent="openContextMenu"
|
|
@contextmenu.prevent="openContextMenu"
|
|
><slot></slot
|
|
></span>
|
|
</template>
|
|
|
|
<script>
|
|
import eventbus from "../js/eventbus";
|
|
|
|
export default {
|
|
name: "InlineChannel",
|
|
props: {
|
|
channel: String,
|
|
},
|
|
methods: {
|
|
openContextMenu() {
|
|
eventbus.emit("contextmenu:inline-channel", {
|
|
event: event,
|
|
channel: this.channel,
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|