Update unit test.
This commit is contained in:
parent
bb2088c8ff
commit
1930bef12c
1 changed files with 4 additions and 7 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<a v-if="href && linkType === 'navigation'" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
|
||||
<a v-else-if="href && linkType === 'footer'" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
|
||||
<a v-else-if="href && linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
|
||||
<a v-else-if="href && linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
|
||||
<a v-if="linkType === 'navigation'" @click="handleClick" class="navigation-link" :href="href">{{text}}</a>
|
||||
<a v-else-if="linkType === 'footer'" @click="handleClick" class="footer-link" :href="href" target="_blank">{{text}}</a>
|
||||
<a v-else-if="linkType === 'textSmall'" @click="handleClick" class="small" :href="href">{{text}}</a>
|
||||
<a v-else-if="linkType === 'text'" @click="handleClick" :href="href">{{text}}</a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
@ -17,9 +17,6 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleClick(event) {
|
||||
if(this.href === "#" || this.href.length < 1) {
|
||||
event.preventDefault();
|
||||
}
|
||||
this.$emit("click-event");
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue