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>
<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"
:title="url"
@click.stop
>
<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="self ? true : promptConfirm()"
@click.stop
>
<slot></slot>