upd: remove duplication

This commit is contained in:
Marie 2024-09-22 19:13:50 +02:00
parent 730bdab5fa
commit 1a6c4e3714
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555

View file

@ -5,19 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<component <component
:is="'MkA'" v-if="self" ref="el" style="word-break: break-all;" class="_link" :to="url.substring(local.length)" :rel="rel ?? 'nofollow noopener'" :target="target" :is="self ? 'MkA' : 'a'" ref="el" style="word-break: break-all;" class="_link" :to="url.substring(local.length)" :rel="rel ?? 'nofollow noopener'" :target="target"
:behavior="props.navigationBehavior" :behavior="props.navigationBehavior"
:title="url" :title="url"
@click.stop @click="self ? true : promptConfirm()"
>
<slot></slot>
<i v-if="target === '_blank'" class="ti ti-external-link" :class="$style.icon"></i>
</component>
<component
:is="'a'" v-else ref="el" style="word-break: break-all;" class="_link" :rel="rel ?? 'nofollow noopener popup=false'" :target="target"
:behavior="props.navigationBehavior"
:title="url"
@click="promptConfirm()"
@click.stop @click.stop
> >
<slot></slot> <slot></slot>