mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-15 07:21:58 +00:00
* Added: Setting to hide the "LIVE" indicator on live channel pages. * Added: Setting to invert portrait mode, placing chat at the top rather than the bottom. * API Added: New icons to the default icon set: `user`, `clip`, `sort-down`, `sort-up`, `sort-alt-up`, `sort-alt-down`, and `language`. * API Added: All Vue components now have access to a `getReactURL(route, ...)` method for building URLs. * API Fixed: `<react-link />` will not attempt a React navigation if given a non-relative link. * API Fixed: Issue with `getTagImmediate` throwing an exception when not given a callback function.
23 lines
No EOL
329 B
Vue
23 lines
No EOL
329 B
Vue
<template>
|
|
<a :href="href" @click="onClick($event)">
|
|
<slot />
|
|
</a>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
props: ['href', 'click'],
|
|
|
|
methods: {
|
|
onClick(event) {
|
|
this.$emit('click', event);
|
|
|
|
if ( ! event.defaultPrevented && ! this.href.includes('//') )
|
|
this.reactNavigate(this.href, event);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
</script> |